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 <hans.lesmeis...@lessy-software.de>
> To: Wicket Users <users@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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

Reply via email to