Help coderanch get a
new server
by contributing to the fundraiser
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Design question

Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have an existing struts application consisting of three JSP pages say page1, page2 and page3 and a form bean (for all these pages) and
an action class(using DispatchAction).

I need to append two jsp pages one at the end and other at the begining. The flow will be


User can select either the old flow or new flow. when user select the new flow, inputs given in the newPage1 are used at the Page1, page2 and other pages.

I created a new form bean, Action class and value object for the new flow. I populated the VO with info in newPage1 and placed it in HttpSession. Page1, page2 and page3 uses the VO in Httpsession. The values selected in these pages are updated in VO. Finally, newPage2 uses the VO for further proceedings.

Is this the best way of doing this?
Is it a good idea to maintain objects across session?

Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you are doing sounds about like what I have done for wizard type pages. If you are not storing data in the session you have to carry it along using hidden fields in your jsp (or I suppose you could save it to a a database).

- Brent
New rule: no elephants at the chess tournament. Tiny ads are still okay.
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic