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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

pass information between jsp

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my project , ihave 5 sperate jsps..which the user has to go through one by one ..in the end all the data(his selection in all 5 jsps) should be submitted..

what is the best method to pass information between jsp
1.session variable?
2.url rewriting?
3...?

rgds
Rimzim
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by rimzim sinha:

what is the best method to pass information between jsp
1.session variable?
2.url rewriting?
3...?

rgds
Rimzim



3) hidden variables

1) if you are putting the information in session, then remove it once the info is saved. Otherwise, it may make session heavy.

2) url rewriting will also do, but you will have to explicitly create the url ( like ?param1=<%=value%>

so for me, hidden parameters look like the best solution.
Correct me if i'm missing anything.

Oops, didnt notice you have 5 jsp's. So, if there are too many parameters, you may prefer to create one object with those parameters and set it in session. But dont forget to remove it once you are done with it.

Regards,
Abhimanyu.
[ November 18, 2004: Message edited by: Abhimanyu Kumar ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic