This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In my current requirement i have to provide the user a tabbed menu. so he may click on tabs and see the results on parent page itself. All the tabs would be having forms in them, like Edit profile, Cancel Order so on..
Now am thinking to go for this in two ways.
1- Provide JSP's inside divs and show and hide them on click. like
2- Put the entire edit.jsp contents within the div itself.
Please inform which one would be better or should i go for altogether a different approach?
If you are using edit.jsp jsp in many places in your application then it make sense to include it in this page as may be used in include action in many other jsps.
If you are not using anywhere in application then you can write content of edit.jsp dirctly in div itself.
hope this will help.
Joined: Mar 20, 2006
Thanks for the suggestion Shailesh. I too thought of that but the thing is that the application is in struts (i should have posted it in struts forum ). So i need to do action mapping and all stuff so thought of having individual JSP pages.
Having jsp content within divs too can serve the purpose , but will then have to write all actions(edit,cancel,book..) within a single action class for all forms in different divs.
So was wondering what approach is taken by exp programmers on this..