• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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 ]
 
The City calls upon her steadfast protectors. Now for a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic