struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Alvarez <oialva...@gmail.com>
Subject Re: S2 equivalent of ForwardAction?
Date Fri, 06 Jul 2012 16:51:05 GMT
You can use wildcard too.

Something like this:

<action name="go*">
 <result>/{*}.jsp</result>
</action>

This takes advantage of  ActionSupport and take the default result
(success) to your page.


2012/7/6 Łukasz Lenart <lukasz.lenart@googlemail.com>

> 2012/7/6 Paul Benedict <pbenedict@apache.org>:
> > Is there any such shortcut in S2? It would be nice if such a thing
> existed like:
> > <action name="gopage">
> >   <result name="success">/page.jsp</result>
> > </action>
>
> It should work, as a default action class is the ActionSupport class
> and its execute() method returns SUCCESS.
>
>
> Regards
> --
> Łukasz
> mobile +48 606 323 122 http://www.lenart.org.pl/
> Warszawa JUG conference - Confitura http://confitura.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Atentamente
Óscar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message