struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navjot Singh" <navjo...@net4india.net>
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
BUT
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.

HTH
-navjot

|-----Original Message-----
|From: rajendra.x.yadav@verizon.com [mailto:rajendra.x.yadav@verizon.com]
|Sent: Friday, July 18, 2003 11:42 AM
|To: struts-user@jakarta.apache.org
|Subject: Passing request from Action to another action
|
|
|Hi,
|In perform() of Action1, I put a Object in setAttribute and  submit to a
|xxx.do which forward my page to 2nd jsp. In the perform() of Action2 (this
|gets called when i submit xxx.do), 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 ?
|
|thanks
|-raj
|
|
|
|
|---------------------------------------------------------------------
|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