struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <>
Subject Re: tiles : "Path teste does not start with a "/" character"
Date Thu, 09 Mar 2006 12:37:09 GMT
vinicius ha scritto:
> Em Qui 09 Mar 2006 08:54, Antonio Petrelli escreveu:
>>> but my question still the same:
>>> I just want to do a forward and change one tile of the layout, so i have
>>> to especify an action class??
>> Short answer: yes.
>> If you want to forward to a definition, say, in case of "success" or to
>> another definition on "failure", you have to use an Action and two
>> forwards, each of them references a different definition.
>> You are using an ActionForward, it forwards only to ONE destination (in
>> your case, ONE definition). If you need more control, I am sorry but you
>> have to use an Action.
> thank you Antonio, but an ActionForward like iam doing, i don't have much 
> control but it would have to work! ??
> and if use an Action, what type of class I have to use if I just want to do a 
> forward??
in your "execute" method put:
return mapping.findForward("nameOfTheForward");
You can also use a newly created ActionForward (but I never tried it!)
return new ActionForward("name.of.the.definition", redirectFlag);

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message