• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retaining values

 
Pol Appan
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

have a search.jsp page with textfields and radio buttons, when the
user queries and fetches the values from database.

How can I retain the textfields and radio button values after he submits
the page?

Using seesion for one page is not a good idea i guess coz
there is the additional
overhead of cleaning up the session each time you exit
out of that usecase..

Any ideas?

Cosmos

[Bear edit: not so urgent]
[ October 01, 2004: Message edited by: Bear Bibeault ]
 
sanjeevmehra mehra
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u r extracting those values

u can pass those value through URL to next page & extract those values using request.getParameter().
u can do the same till you want to keep the values.


may be there are better ways, which I would also like to know.

thanks & regards,
sanjeev.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sanjeevmehra,

Your help is very much appreciated. But please bear in mind that JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

thanks,
bear
Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!