The moose likes Struts and the fly likes Doubt on Tabbed menu approach Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Doubt on Tabbed menu approach" Watch "Doubt on Tabbed menu approach" New topic

Doubt on Tabbed menu approach

Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
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?

Thanks in advance.
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
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.

Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
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..
I agree. Here's the link:
subject: Doubt on Tabbed menu approach
It's not a secret anymore!