You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Shah Amit <am...@hotmail.com> on 2005/10/10 19:33:58 UTC
Struts Bridge - Redirect from action
Hi all,
Jetspeed M3, Tomcat 5.0.28, Struts-Bridge is my environment. Now my website
is lets say --
www.abc.com
I have a form on my webpage. When that form is submitted, I want to do some
processing in my action, and then redirect to a completely different website
-
ww.xyz.com which is totally different from my current website
It is important that I redirect to this "new website" from my action because
I need to do some processing in my action and based on that I need to pass
some parameters -- www.xyz.com?param1=val1¶m2=val2
Is it possible to do this ? I tried doing this, but the portal always picks
it up ...
Thanks,
Amit
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Struts Bridge - Redirect from action
Posted by Shah Amit <am...@hotmail.com>.
Hi Mahaveer,
Thanks for the reply.
It is a JSPPortlet.
And you are right. The the new window opens in the portlet environment with
decorators and everything. Now when you say use onload, the problem is I
dont have any html tags. They are in the decorator headers. The portlet only
renders content for that portlet and not for the entire HTML page ..
Any suggestions :-(
----Original Message Follows----
From: Mahaveer Jain <mj...@gmail.com>
Reply-To: "Jetspeed Users List" <je...@portals.apache.org>
To: Jetspeed Users List <je...@portals.apache.org>
Subject: Re: Struts Bridge - Redirect from action
Date: Thu, 13 Oct 2005 18:22:45 -0400
Amit,
First of all what type of portlet are you using: Is it JSPPortlet or
iFramePortlet?
One important thing, when you submit a page, it would return to the
portlet, so the new page may open in the portlet.
So what you may like to do this after you finish your processing, you come
back to whatever page in the portlet and then you may call body onload which
opens this page
www.xyz.com?param1=val1¶m2=val2<http://www.xyz.com?param1=val1¶m2=val2>
And if you are using Javascript, use window.open('
www.xyz.com?param1=val1¶m2=val2<http://www.xyz.com?param1=val1¶m2=val2>',
...) check for other parameters in some book or website.
hope this helps.
Mahaveer
On 10/10/05, Shah Amit <am...@hotmail.com> wrote:
>
> Hi all,
>
> Jetspeed M3, Tomcat 5.0.28, Struts-Bridge is my environment. Now my
> website
> is lets say --
>
> www.abc.com <http://www.abc.com>
>
> I have a form on my webpage. When that form is submitted, I want to do
> some
> processing in my action, and then redirect to a completely different
> website
> -
>
> ww.xyz.com <http://ww.xyz.com> which is totally different from my current
> website
>
> It is important that I redirect to this "new website" from my action
> because
> I need to do some processing in my action and based on that I need to
pass
> some parameters --
www.xyz.com?param1=val1¶m2=val2<http://www.xyz.com?param1=val1¶m2=val2>
>
> Is it possible to do this ? I tried doing this, but the portal always
> picks
> it up ...
>
> Thanks,
> Amit
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Struts Bridge - Redirect from action
Posted by Mahaveer Jain <mj...@gmail.com>.
Amit,
First of all what type of portlet are you using: Is it JSPPortlet or
iFramePortlet?
One important thing, when you submit a page, it would return to the
portlet, so the new page may open in the portlet.
So what you may like to do this after you finish your processing, you come
back to whatever page in the portlet and then you may call body onload which
opens this page
www.xyz.com?param1=val1¶m2=val2<http://www.xyz.com?param1=val1¶m2=val2>
And if you are using Javascript, use window.open('
www.xyz.com?param1=val1¶m2=val2<http://www.xyz.com?param1=val1¶m2=val2>',
...) check for other parameters in some book or website.
hope this helps.
Mahaveer
On 10/10/05, Shah Amit <am...@hotmail.com> wrote:
>
> Hi all,
>
> Jetspeed M3, Tomcat 5.0.28, Struts-Bridge is my environment. Now my
> website
> is lets say --
>
> www.abc.com <http://www.abc.com>
>
> I have a form on my webpage. When that form is submitted, I want to do
> some
> processing in my action, and then redirect to a completely different
> website
> -
>
> ww.xyz.com <http://ww.xyz.com> which is totally different from my current
> website
>
> It is important that I redirect to this "new website" from my action
> because
> I need to do some processing in my action and based on that I need to pass
> some parameters -- www.xyz.com?param1=val1¶m2=val2<http://www.xyz.com?param1=val1¶m2=val2>
>
> Is it possible to do this ? I tried doing this, but the portal always
> picks
> it up ...
>
> Thanks,
> Amit
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>