This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access data in another servlet

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a servletA that reads a serialized object into memory.
It then displays a JSP page which shows the different field data of that object. These fields would be links to another servletB.
I don't want to read in the object twice, how would servletB get access to the object in memory in servletA?
Is there a way to do this without EJB?
Thanks.
SQ
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am assuming that it's an HttpServlet so I guess you could put the object in the <B>request</B> object with the setAttribute() method and forward to ServletB...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic