You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by venkat <ve...@gmail.com> on 2012/12/19 12:01:26 UTC
Redirecting to another wicket application
Hi ,
we have two wicket based applications 1.App1 2.App2. Both are deployed on
same server .
App1 is used as authentication APP which lands user on to App2 post
authentication logic.
>From App2 I want to redirect user to App1 home page on link click , however
when I tried to use the follwoing code am not able to do the same.
App1 URL: http://localhost:7001/App1
App2 URL: http://localhost:7001/App2
on one of the page in App2 :http://localhost:7001/App2/wicket/page?4
Have used the below code new RedirectToUrlException("/../App1/");
However, the redirect URL is get appended to context path rather than
replacing it.
Actual : http://localhost:7001/App2/wicket/http://localhost:7001/App1
Where as i would expect it as http://localhost:7001/App1 .
any one please suggest what is going wrong ....
Thanks in advance!!!
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-to-another-wicket-application-tp4654921.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Redirecting to another wicket application
Posted by Martin Grigorov <mg...@apache.org>.
Try with new RedirectToUrlException("/App1/");
On Wed, Dec 19, 2012 at 1:01 PM, venkat <ve...@gmail.com> wrote:
> Hi ,
> we have two wicket based applications 1.App1 2.App2. Both are deployed on
> same server .
>
> App1 is used as authentication APP which lands user on to App2 post
> authentication logic.
>
> From App2 I want to redirect user to App1 home page on link click , however
> when I tried to use the follwoing code am not able to do the same.
>
> App1 URL: http://localhost:7001/App1
> App2 URL: http://localhost:7001/App2
>
> on one of the page in App2 :http://localhost:7001/App2/wicket/page?4
>
> Have used the below code new RedirectToUrlException("/../App1/");
>
> However, the redirect URL is get appended to context path rather than
> replacing it.
> Actual : http://localhost:7001/App2/wicket/http://localhost:7001/App1
> Where as i would expect it as http://localhost:7001/App1 .
>
> any one please suggest what is going wrong ....
>
> Thanks in advance!!!
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Redirecting-to-another-wicket-application-tp4654921.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>
Re: Redirecting to another wicket application
Posted by venkat <ve...@gmail.com>.
have tried with
new RedirectToUrlException("/App1/");
now it is moving to http://localhost:7001/App2/App1/
where as i would need to redirect to
http://localhost:7001/App1/
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-to-another-wicket-application-tp4654921p4654930.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org