struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul, R. Chip" <ROY.C.PAUL....@saic.com>
Subject RE: data transfer from Action class to jsp page
Date Wed, 25 Feb 2004 19:07:54 GMT
Your four choices are:
	place in session
	place in request
	place in Tiles context (if a tiles context exists)
	pass as request parameter (i.e. on the forward url)

Sounds to me like placing this in the request via request.setAttribute(name,
value) is what you want, but if the jsp you're forwarding to has edit/update
capability, you could just set up a request scoped from and use that.

-----Original Message-----
From: Pradeep, PK [mailto:pk.pradeep@digital.com] 
Sent: Wednesday, February 25, 2004 10:51 AM
To: Struts Users Mailing List
Subject: RE: data transfer from Action class to jsp page


Sending the same question again..


I have this basic question.....

Suppose action class calls some business object and fetches some data (say
employee detail). How to transfer this data to jsp page which is reached
through ActionForward?

One way I know is storing the data in session object..is there any
better/different way

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message