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! ??
Sorry?
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);
Ciao


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to