struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Raeburn" <st...@ninsky.com>
Subject RE: findForward question
Date Tue, 01 Jul 2003 19:09:32 GMT
getInputForward() returns the ActionForward for your input page.

Steve

> -----Original Message-----
> From: Fedor Smirnoff [mailto:fedorsmirnoff@yahoo.com]
> Sent: July 1, 2003 11:57 AM
> To: Struts Users Mailing List
> Subject: findForward question
> 
> 
> Hey guys I am abit confused about using findForward. I
> have tried several different apporaches and for some
> reason one of them doesnt work and the other two do
> work. However, I think its the best to use the first
> one since it doesnt not create a new ActionForward:
> 
> return actionMapping.findForward
> actionMapping.getInput()); - this one doesnt work
> 
> return (new ActionForward(actionMapping.getInput()));
> this one works fine
> 
> return actionMapping.findForward("Success"); - this
> one works fine with struts cofing:
> 
> <forward name="Success" path="/admin/newTemplate.jsp"
> redirect="true"/>
> 
> 
> 
> Is the difference between those methods in redirect or
> forward, please explain I am confused in that case why
> forward wouldnt work.
> 
> 
> =====
> Sincerely,
> Fedor Smirnoff
> Sun Certified Java Programmer
> http://www.olnix.com
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> 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