Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Any alternative to this way of session handling in struts?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

The following is the flow..

JSP1->MyForm->MyAction->JSP2

If I want to maintain the session,then I will write coding in execute method of MyAction,to put the datas in the session using request object. Is this way of handling the data is good?

or is there any other way to get the datas from jsp 1 to jsp 2,

is it possible to access the data from MyForm

Thanks for your time,

 
Ranch Hand
Posts: 141
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can certainly use the session. Depending on how long you want to hold on to your variables, you may find that the request object will suffice.

Check out JavaBeans and Scope within the Struts documentation.

 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!