• Post Reply Bookmark Topic Watch Topic
  • New Topic

how I can send one httpsession for another one servlet ?

 
Marco Paradiso
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to send one httpsession of mine web service for another one servlet. When access the other servelet and I try to recoup the session, it comes as null. Somebody could help to decide this me.
Tranks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since a HttpSession is managed by the container it is not a good idea to try holding on to a reference longer than one request/response cycle.

Why not just extract the information you need to share to a plain Java object and share that?

Are both servlets in the same web application, the same server instance, the same network, or what?


Bill
 
Marco Paradiso
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Willian,

I need to recoup the sent information it webservice and to keep in the HTTPSession session. After this, I have I want to recoup the information of the session in the other servlet. He has some form to make this?
 
Marco Paradiso
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will be that somebody would know to help me with this?

Thanks...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!