Title: RE: how to pass an instance of an object?
are you sure request is enough?  My experience is that the request is lost between jsp pages.  Or, at least, there is a new request made for each jsp page.
 
You might have to live with setting it in a session (although that presents it's own set of side-effects).
----- Original Message -----
Sent: Thursday, April 12, 2001 3:30 PM
Subject: RE: how to pass an instance of an object?

use  request#setAttribute(String, Object) to set the object to an attribute and forward the request to the other jsp. There you can use request#getAttribute(String) to get the object back.

-----Original Message-----
From: Charlemagne L. Rey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 4:30 PM
To: Jakarta Struts Users
Subject: how to pass an instance of an object?


hi!

i would like to ask if i could pass a certain instance of an
object from one page to another. how? btw, this is the scenario:
i have a jsp page which contains a collection of objects.
then, i iterate that collection and try to pass an element
of that collection to another jsp page. is this possible?
hope it is... :)

Reply via email to