Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Doubt on Tabbed menu approach

 
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic