• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic