• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass Object through request querystring to a servlet.

 
Ramu Valivarthi
Ranch Hand
Posts: 37
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I want to pass object through query string to servlet.
if any one have idea please help me out.
 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't believe there is a general solution. In some simple cases you can accomplish what seems like passing an object when the text in the query string is used to create a local object. Integers for example can work like this.

The most common way of accomplishing object passing is to put the object in the session (or some appropriate scope) and pass the key in your query string.

Hope this helps,
-=beeky
 
Ramu Valivarthi
Ranch Hand
Posts: 37
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks William.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic