Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which one approach is good for runtime change in JSP pages?

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there

I have a seneraio their is a page in my web application which is myprofile.jsp

I have 5 members(users) in my web application where each one can request for his profile

I have two seneraio for this to use

1)Users(account,faculty,placement,library,hr) clicked on myprofile section on header->request will go to controller controller will set a flag based on that there is a single myProfile.jsp page that will Include header section by processing that parameter

2)There are multiple myprofile.jsp page in each section(faculty,libraray,placement,hr,account) controller will decide and then forward to right JSP page in that section no processing is done on myProfile.jsp and no run time jsp:inlcudes all are did when JSP page is prepared

Which one approach I should user?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which solution is more scalable? What other criteria might you think of when choosing?
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which solution is more scalable? What other criteria might you think of when choosing?



I think first one is more scalable.Because if there is any change then I need to change it only one place not in each profilePages
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic