You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2007/02/27 01:07:08 UTC
Pass url back to redirect action?
Hello:
In my struts.xml, I have this:
<action name="*/*" class="{1}.{2}">
<result name="input">/{1}/{2}.jsp</result>
<result name="login">/top/Login.jsp</result>
<result name="loginRedirect" type="redirect">
<param
name="location">https://tweb.retcgroup.com/thymeleweb/top/Login.action</para
m>
</result>
<result name="success">/{1}/{2}.jsp</result>
</action>
I would like to have the URL for the loginRedirect result
passed back from my Login class.
Is there a way to do that?
Thanks,
Neil
--
Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Pass url back to redirect action?
Posted by Neil Aggarwal <ne...@JAMMConsulting.com>.
Laurie:
That worked perfectly. Thank you for the guidance.
Neil
--
Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Laurie Harper
Sent: Monday, February 26, 2007 7:20 PM
To: user@struts.apache.org
Subject: Re: Pass url back to redirect action?
Neil Aggarwal wrote:
> Hello:
>
> In my struts.xml, I have this:
>
> <action name="*/*" class="{1}.{2}">
> <result name="input">/{1}/{2}.jsp</result>
> <result name="login">/top/Login.jsp</result>
> <result name="loginRedirect" type="redirect">
> <param
>
name="location">https://tweb.retcgroup.com/thymeleweb/top/Login.action</para
> m>
> </result>
> <result name="success">/{1}/{2}.jsp</result>
> </action>
>
> I would like to have the URL for the loginRedirect result
> passed back from my Login class.
>
> Is there a way to do that?
>
> Thanks,
> Neil
I believe you can do this, or something similar (assuming the URL is
available via a getRedirectUrl() method on your action):
<result name="loginRedirect" type="redirect">${redirectUrl}</result>
Note that it's ${...} not %{...}.
L.
---------------------------------------------------------------------
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: Pass url back to redirect action?
Posted by Laurie Harper <la...@holoweb.net>.
Neil Aggarwal wrote:
> Hello:
>
> In my struts.xml, I have this:
>
> <action name="*/*" class="{1}.{2}">
> <result name="input">/{1}/{2}.jsp</result>
> <result name="login">/top/Login.jsp</result>
> <result name="loginRedirect" type="redirect">
> <param
> name="location">https://tweb.retcgroup.com/thymeleweb/top/Login.action</para
> m>
> </result>
> <result name="success">/{1}/{2}.jsp</result>
> </action>
>
> I would like to have the URL for the loginRedirect result
> passed back from my Login class.
>
> Is there a way to do that?
>
> Thanks,
> Neil
I believe you can do this, or something similar (assuming the URL is
available via a getRedirectUrl() method on your action):
<result name="loginRedirect" type="redirect">${redirectUrl}</result>
Note that it's ${...} not %{...}.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org