You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lurtz Nazgul <lu...@ymail.com> on 2011/07/21 11:15:19 UTC
Forward to Bookmarkable
Hi;
How can i forward user to a BookmarkablePage. I don't need redirection. I don't
want user to see url.
Thanks.
Re: Forward to Bookmarkable
Posted by Clint Checketts <ch...@gmail.com>.
What do you mean by 'hide the url'? Do you mean obfuscate the URL?
BybridUrlEncodingStrategy will let you display a bookmarkable URL that is
stateful (so it isn't the actual bookmarkable page)
For example: /mayapp/welcome.0
Note the .0 on the end. If the user's session expires, I believe it will
attempt to reload the page, but it will create a new one if the expected
version isn't in session.
-Clint
On Thu, Jul 21, 2011 at 5:44 AM, Lurtz Nazgul <lu...@ymail.com> wrote:
> Hi Hans;
>
> Thanks for your answer
>
> But still url can be seen by the user.
> I need to forward in order to hide the url from user.
>
> Any idea ?
>
> Thanks.
>
>
>
>
> ________________________________
> From: Hans Lesmeister <ha...@lessy-software.de>
> To: Wicket Users <us...@wicket.apache.org>
> Sent: Thu, July 21, 2011 12:35:21 PM
> Subject: Re: Forward to Bookmarkable
>
> You can setResponePage or throw one of the RestartResponse*-Exceptions
>
> Regards
> Hans
>
>
> Am 21.07.11 11:19 schrieb "Lurtz Nazgul" unter <lu...@ymail.com>:
>
> > I also tried
> >
> > WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get();
> > ServletRequest httpRequest =
> > cycle.getWebRequest().getHttpServletRequest();
> > ServletResponse httpResponse =
> > cycle.getWebResponse().getHttpServletResponse();
> > ServletContext context = ((WebApplication)
> > Application.get()).getServletContext();
> >
> context.getRequestDispatcher("/mywelcome").forward(httpRequest,
> > httpResponse);
> >
> > where mywelcome url is BookmarkablePage, in MyWebApplication.java
> >
> > this.mountBookmarkablePageWithUrlCoding("/mywelcome", Welcome.class);
> >
> > Thanks.
> >
> >
> >
> >
> > ________________________________
> > From: Lurtz Nazgul <lu...@ymail.com>
> > To: users@wicket.apache.org
> > Sent: Thu, July 21, 2011 12:15:19 PM
> > Subject: Forward to Bookmarkable
> >
> > Hi;
> >
> > How can i forward user to a BookmarkablePage. I don't need redirection.
> I
> > don't
> >
> > want user to see url.
> >
> >
> > Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Forward to Bookmarkable
Posted by Lurtz Nazgul <lu...@ymail.com>.
Hi Hans;
Thanks for your answer
But still url can be seen by the user.
I need to forward in order to hide the url from user.
Any idea ?
Thanks.
________________________________
From: Hans Lesmeister <ha...@lessy-software.de>
To: Wicket Users <us...@wicket.apache.org>
Sent: Thu, July 21, 2011 12:35:21 PM
Subject: Re: Forward to Bookmarkable
You can setResponePage or throw one of the RestartResponse*-Exceptions
Regards
Hans
Am 21.07.11 11:19 schrieb "Lurtz Nazgul" unter <lu...@ymail.com>:
> I also tried
>
> WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get();
> ServletRequest httpRequest =
> cycle.getWebRequest().getHttpServletRequest();
> ServletResponse httpResponse =
> cycle.getWebResponse().getHttpServletResponse();
> ServletContext context = ((WebApplication)
> Application.get()).getServletContext();
> context.getRequestDispatcher("/mywelcome").forward(httpRequest,
> httpResponse);
>
> where mywelcome url is BookmarkablePage, in MyWebApplication.java
>
> this.mountBookmarkablePageWithUrlCoding("/mywelcome", Welcome.class);
>
> Thanks.
>
>
>
>
> ________________________________
> From: Lurtz Nazgul <lu...@ymail.com>
> To: users@wicket.apache.org
> Sent: Thu, July 21, 2011 12:15:19 PM
> Subject: Forward to Bookmarkable
>
> Hi;
>
> How can i forward user to a BookmarkablePage. I don't need redirection. I
> don't
>
> want user to see url.
>
>
> Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Forward to Bookmarkable
Posted by Hans Lesmeister <ha...@lessy-software.de>.
You can setResponePage or throw one of the RestartResponse*-Exceptions
Regards
Hans
Am 21.07.11 11:19 schrieb "Lurtz Nazgul" unter <lu...@ymail.com>:
> I also tried
>
> WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get();
> ServletRequest httpRequest =
> cycle.getWebRequest().getHttpServletRequest();
> ServletResponse httpResponse =
> cycle.getWebResponse().getHttpServletResponse();
> ServletContext context = ((WebApplication)
> Application.get()).getServletContext();
> context.getRequestDispatcher("/mywelcome").forward(httpRequest,
> httpResponse);
>
> where mywelcome url is BookmarkablePage, in MyWebApplication.java
>
> this.mountBookmarkablePageWithUrlCoding("/mywelcome", Welcome.class);
>
> Thanks.
>
>
>
>
> ________________________________
> From: Lurtz Nazgul <lu...@ymail.com>
> To: users@wicket.apache.org
> Sent: Thu, July 21, 2011 12:15:19 PM
> Subject: Forward to Bookmarkable
>
> Hi;
>
> How can i forward user to a BookmarkablePage. I don't need redirection. I
> don't
>
> want user to see url.
>
>
> Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Forward to Bookmarkable
Posted by Lurtz Nazgul <lu...@ymail.com>.
I also tried
WebRequestCycle cycle = (WebRequestCycle) RequestCycle.get();
ServletRequest httpRequest =
cycle.getWebRequest().getHttpServletRequest();
ServletResponse httpResponse =
cycle.getWebResponse().getHttpServletResponse();
ServletContext context = ((WebApplication)
Application.get()).getServletContext();
context.getRequestDispatcher("/mywelcome").forward(httpRequest,
httpResponse);
where mywelcome url is BookmarkablePage, in MyWebApplication.java
this.mountBookmarkablePageWithUrlCoding("/mywelcome", Welcome.class);
Thanks.
________________________________
From: Lurtz Nazgul <lu...@ymail.com>
To: users@wicket.apache.org
Sent: Thu, July 21, 2011 12:15:19 PM
Subject: Forward to Bookmarkable
Hi;
How can i forward user to a BookmarkablePage. I don't need redirection. I don't
want user to see url.
Thanks.