• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Doubt on Tabbed menu approach

 
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Do not set lab on fire. Or this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic