struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navjot Singh" <>
Subject RE: Passing request from Action to another action
Date Fri, 18 Jul 2003 06:31:48 GMT
If you are *disptaching* the request to another url. you can use REQUEST
object to pass java objects
if you are redirecting the request to another url, SESSION is the way to go.

Reason - HTTP cannot maintain the state b/w 2 requests.


|-----Original Message-----
|From: []
|Sent: Friday, July 18, 2003 11:42 AM
|Subject: Passing request from Action to another action
|In perform() of Action1, I put a Object in setAttribute and  submit to a
| which forward my page to 2nd jsp. In the perform() of Action2 (this
|gets called when i submit, I try to get the atribute... but it's
|giving me null.
|What could be wrong ?
|Is request the best way to pass objects between Servlets or session ?
|To unsubscribe, e-mail:
|For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message