You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Iyanu, Rajasekaran" <Ra...@fmr.com> on 2005/02/22 12:51:09 UTC

Action Forward class :

 Hi, 

 Can anyone please revert back with the pros and cons of specifying a
subclass of ActionForward (using "className" attribute) in forward
tag..?

 <forward name="success" className="com.aaa.bbb.ccc.xxxActionForward"
path="login">

 Thanks and regards
 Rajasekaran Iyanu


Re: Action Forward class :

Posted by Joe Germuska <Jo...@Germuska.com>.
This question is probably best suited for the 
"users@struts.apache.org" mailing list; the "dev" list is intended 
for discussing ongoing development *OF* the Struts framework, while 
the user list is for discussing development *WITH* the Struts 
framework.

You might simply want to try tracing through the code in 
RequestProcessor: you'll see that the only thing which is done with 
the ActionForward is that it is passed to processForward(...).  If 
you wanted to override that method in a custom RequestProcessor, then 
you might want to pass along some more properties on the 
ActionForward object; about the only other thing you might do would 
be to have the property accessors on the class work differently, 
perhaps if you wanted to dynamically construct the "path" value. 
Personally, in three years of Struts development, i have yet to have 
cause to use any custom subclass of ActionForward.

http://svn.apache.org/repos/asf/struts/core/trunk/src/share/org/apache/struts/action/RequestProcessor.java

Joe


At 6:51 AM -0500 2/22/05, Iyanu, Rajasekaran wrote:
>  Hi,
>
>  Can anyone please revert back with the pros and cons of specifying a
>subclass of ActionForward (using "className" attribute) in forward
>tag..?
>
>  <forward name="success" className="com.aaa.bbb.ccc.xxxActionForward"
>path="login">
>
>  Thanks and regards
>  Rajasekaran Iyanu


-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"Narrow minds are weapons made for mass destruction"  -The Ex

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