Alle giovedì 25 ottobre 2012, Martin Grigorov ha scritto:
> On Thu, Oct 25, 2012 at 4:57 PM, Paolo <[email protected]> wrote:
> > Hi,
> > I know that it is an old discussion,
> > but I really want the url simply and clear, without ;jsessionid= and 
> > without ?1  ?2 etc.
> 
> 1) make sure cookies are enabled - jsessionid is gone
Yes, the cookies are enabled.
Now I notice, that only the homepage have jsessionid, so I mounted it with:
mountPage("/", HomePage.class);
and jsessionid is disappeared.
But now an / is added at the end of url of homepage.
I don't like it, but I can live with it. I also see that if I wrote 
www.google.com the rendered page add an / at the and i.e.:
http://www.google.com/

> 2) make sure your pages are stateless - ?2 is gone
How can I make all my pages stateless?

> 
> Voila!
> 
> > I am starting to upgrade to wichet 6.2.0
> > actually I use this in MainApplication:
> >
> >     protected void init()
> >     {
> >         super.init();
> >         SecurePackageResourceGuard guard = new SecurePackageResourceGuard();
> >                 guard.addPattern("+**.gif");
> >                 guard.addPattern("+*.*");
> >                 guard.addPattern("+*.gi*");
> >                 guard.addPattern("+test*.gif");
> >         getResourceSettings().setPackageResourceGuard(guard);
> >         //getDebugSettings().setDevelopmentUtilitiesEnabled(true);
> >         // mountPage("home.html", HomePage.class);
> >         // mountPage("/", HomePage.class);
> >         mountPage("search", Search.class);
> >         mountPage("products", Products.class);
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to