struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Selton <asel...@yahoo.com>
Subject Re[2]: How to use forward parameters ? Newbie
Date Wed, 19 Mar 2003 12:40:16 GMT
Hello Nicolas,

Tuesday, March 18, 2003, 9:33:51 AM, you wrote:
NDL> <set-property> is used when using a class that
extends ActionForward
NDL> (using className="") to set it's properties,
without having to extend
NDL> ActionServlet or change struts DTD.

  I am undestanding this now.

NDL> If you want to pass some datas to another action,
you can

  I have some pages on my system who can be called
from different
places. The local from where they was called will
determine the next
page to show.
  One example of this is the login action. It can be
called when the
user press the "login" link on a application page. On
this case after
the login is finished the next page show is the main
site page.
  But when it is called to authenticate the user who
is doing the
checkout the page to be show is another.
  What is the best practice to handle this type of
problem ?
  
NDL> - use servlet context to put a javaBean

  Can you show how to do this ? Some small code is ok.
  
NDL> - add (or overwrite) a request parameters by
creating a new
NDL> ActionForward with path
"newAction.do?newParam=value"

  I was able to implement what I want using this idea.
But the code is
very bad. I really hope there are a better option.

  Andre S.

>>   Hello,
>>
>>   I can use set-property on a action forward like
this :
>>
>>     <action type="FooAction" path="/fooAction">
>>       <forward name="success" path="/newAction.do">
>>         <set-property value="barbar" property="bar"
/>
>>       </forward>
>>     </action>
>>
>>   This redirect me to another action.
>>   How can I get the value of set-property on the
>> newAction ?
>>   I did not find this on the docs, if you can point
>> where I can found it is ok.

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

---------------------------------------------------------------------
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