You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcin Pietraszek <m....@gmail.com> on 2008/01/06 15:56:11 UTC
logic:redirect substitute
Hi,
as in subject. Is there in Struts2 tag which have the same behavior as
<logic:redirect> from Struts1? If no, how I can achive simillar effect
with S2 tags?
--
greetings! kbl/Cinek/greengoo
marcin.pietraszek.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:redirect substitute
Posted by Dave Newton <ne...@yahoo.com>.
Oops.
AFAIK S2 doesn't have an equivalent tag.
Can't you just use a scriptlet? It's only one file. Or use JSTL.
d.
--- Marcin Pietraszek <m....@gmail.com> wrote:
> Hi,
>
> > http://struts.apache.org/2.0.11/docs/redirect-action-result.html
> > the struts2.x prescribed algorithm is to use a redirect-action
> > is there something specific in your webapp to prevent you from using
> > redirect-action?
>
> Maybe this could be named "specyfic".. I want to redirect to action X
> when application "starts". The first JSP I define with
> <welcome-file-list>
> <welcome-file>jsp/index.jsp</welcome-file>
> </welcome-file-list>
> in web.xml.
>
> In Struts 1 I can achive this behavior when in an above JSP page I
> include <logic:redirect.>
> with appropriate action name. How can I achive this with Struts2?
>
> --
> greetings! kbl/Cinek/greengoo
> marcin.pietraszek.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:redirect substitute
Posted by Dave Newton <ne...@yahoo.com>.
AFAIK there is no tag for this.
Can't you just use a scriptlet? It's only in one file.
d.
--- Marcin Pietraszek <m....@gmail.com> wrote:
> Hi,
>
> > http://struts.apache.org/2.0.11/docs/redirect-action-result.html
> > the struts2.x prescribed algorithm is to use a redirect-action
> > is there something specific in your webapp to prevent you from using
> > redirect-action?
>
> Maybe this could be named "specyfic".. I want to redirect to action X
> when application "starts". The first JSP I define with
> <welcome-file-list>
> <welcome-file>jsp/index.jsp</welcome-file>
> </welcome-file-list>
> in web.xml.
>
> In Struts 1 I can achive this behavior when in an above JSP page I
> include <logic:redirect.>
> with appropriate action name. How can I achive this with Struts2?
>
> --
> greetings! kbl/Cinek/greengoo
> marcin.pietraszek.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:redirect substitute
Posted by Marcin Pietraszek <m....@gmail.com>.
Hi!,
> I guess Im not understanding why you don't want to use
> redirect-action-result?
Because I want use as a first-web-page tiles page. And as far as I
know I can achive this only with
<action name="actionName">
<result>tiles.index</result>
</action>
so I want to redirect from index.jsp to actionName.action. How can I
use redirect-action-result in this case?
--
pozdrawiam! kbl/Cinek/greengoo
marcin.pietraszek.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:redirect substitute
Posted by Marcin Pietraszek <m....@gmail.com>.
Hi,
> http://struts.apache.org/2.0.11/docs/redirect-action-result.html
> the struts2.x prescribed algorithm is to use a redirect-action
> is there something specific in your webapp to prevent you from using
> redirect-action?
Maybe this could be named "specyfic".. I want to redirect to action X
when application "starts". The first JSP I define with
<welcome-file-list>
<welcome-file>jsp/index.jsp</welcome-file>
</welcome-file-list>
in web.xml.
In Struts 1 I can achive this behavior when in an above JSP page I
include <logic:redirect.>
with appropriate action name. How can I achive this with Struts2?
--
greetings! kbl/Cinek/greengoo
marcin.pietraszek.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org