Wes,
On 1/26/07, Wesley Wannemacher <WesW@(protected):
>
>
> If you are looking for general configuration tips on mapping results check
> this -
> http://struts.apache.org/2.x/docs/result-types.html
This is exactly what I was looking for:
I found this particular snippet here -
> http://struts.apache.org/2.x/docs/redirect-action-result.html
>
>
> -Wes
Thanks!!!
> -----Original Message-----
> > From: Elie Ciment [mailto:eciment@(protected)]
> > Sent: Friday, January 26, 2007 2:42 PM
> > To: Struts Users Mailing List
> > Subject: Re: [s2] Actions in different Namespaces
> >
> > Great, thanks Wes.
> >
> > Where is this type of thing documented? What other parameters
> > can be passed
> > to the result element?
> >
> >
> >
> > I'm using the following:
> > >
> > > <action name="Login_*"
> > > class="com.doubleatrailer.struts.Actions.Login" method="{1}">
> > > <result
> > > name="input">/WEB-INF/jsp/Login.jsp</result>
> > > <result
> > > name="LoginFailure">/WEB-INF/jsp/LoginFailed.jsp</result>
> > > <result type="redirect-action">
> > > <param
> > name="actionName">index</param>
> > > <param
> > name="namespace">/customer</param>
> > > </result>
> > > </action>
> > >
> > > This works fine for me. In fact, this isn't the only action
> > I have that
> > > forwards to an action in a different namespace, but it's
> > all pretty much
> > > the
> > > same.
> > >
> > > -Wes
> > >
> > > > -----Original Message-----
> > > > From: eciment@(protected)
> > > > Of Elie Ciment
> > > > Sent: Friday, January 26, 2007 2:05 PM
> > > > To: Struts Users Mailing List
> > > > Subject: [s2] Actions in different Namespaces
> > > >
> > > > Is it possible to redirect an action in one namespace to
> > > > another? I wasn't
> > > > able to do so...
> > > >
> > > > For example, to take an action "Example_create" in the
> > > > "example" namespace,
> > > > and if for some reason the user was logged out in the
> > > > meantime, is there a
> > > > way to forward them to the "security" namespace to the
> > > > "Login_input" action?
> > > >
> > > > Thanks,
> > > > EC
> > > >
> > >
> > >
> > >
> >
>
>
>