struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srineel Mazumdar <smaz19...@gmail.com>
Subject Re: Issue with entry in Struts.xml
Date Mon, 19 Nov 2012 04:16:09 GMT
Thanks Dave.You got it right.

So you are saying that if I want to forward the output of an action to
another  action , I should use redirect action?? I will search for the
filter option.

Regards,
Srineel


On Mon, Nov 19, 2012 at 1:13 AM, Dave Newton <davelnewton@gmail.com> wrote:

> > This entry is working:
> >
> > <action name="signon" class="signonAction">
> >   <result>/WEB-INF/jsp/index.jsp</result>
> > </action>
> >
> > This entry is not:
> >
> > <action name="signon" class="signonAction">
> >   <result>/shop/index.action</result>
> > </action>
>
> It's not entirely clear what the question is, but in case the
> statement is actually "why", I'll answer.
>
> The first result forwards to a JSP. The second attempts to forward to an
> action.
>
> You can set it so forwards are processed by the filter (I forget the
> exact configuration, something in web.xml, it's searchable), or you
> can redirect to the action by name, e.g.:
>
> <result type="redirectAction">index</result>
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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