Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
Author and ninkuma
Marshal
Posts: 66478
160
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
 
Always look on the bright side of life. At least this ad is really tiny:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!