Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Which solution is more scalable? What other criteria might you think of when choosing?
+Pie Number of slices to send: Send
 


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
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 616 times.
Similar Threads
How to include different jsp pages on different request on a JSP page?
What should be best approach for this seneraio?
What InputSteam is to use in which seneraio?
Is there any alternative of using JavaScript in JSP other than this?
Is this right Approach to do this in DAO?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:43:11.