You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chen, Gin" <Gi...@NielsenMedia.com> on 2003/07/01 20:51:22 UTC

[OT] Best Practice Converters

Where is the best place to put a call to ConvertUtils.register when you need
to register a Converter in a Struts project?
-Tim

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


RE: findForward question

Posted by Steve Raeburn <st...@ninsky.com>.
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


findForward question

Posted by Fedor Smirnoff <fe...@yahoo.com>.
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