thanks James, what i am trying to do is, first time i go to home page it is fine, I have a login form. If I enter a correct username/password i login, that's fine. If user just clicks submit button on the login form without any data, it remains on the same page. that is fine but the url i get it is http://localhost:8080/;jsessionid=905AA4A0D7E4441514ED2588160A04E5?wicket:interface=:0:loginform::IFormSubmitListener::
this messes up the other content on the page. i tried something like this getResponse().encodeURL(((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getRequestURI()); it did't work. I am using tomcat 6, wicket 3.1. is there a anyother way in wicket to do this. this problem only in firefox not in safari. jwcarman wrote: > > That's a feature of the application server you're using. It has to > put that on there initially because it doesn't know if the browser > supports cookies or not. When a subsequent request comes in with the > jsessionid cookie, it no longer needs to append it to the URLs. Check > the docs for HttpServletResponse.encodeURL(): > > http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String) > > > > On Thu, Mar 27, 2008 at 7:05 PM, Penn <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> when i go to my homepage for the first time, after clearing caching in >> the >> browser, clicking on the login form I see >> >> >> http://localhost:8080/;jsessionid=905AA4A0D7E4441514ED2588160A04E5?wicket:interface=:0:loginform::IFormSubmitListener:: >> >> After the first time and go back to home page again it is resolved to >> >> >> http://localhost:8080/home?wicket:interface=:1:loginform::IFormSubmitListener:: >> >> so how to avoid the jessionid in the url for the first time >> >> Penn >> -- >> View this message in context: >> http://www.nabble.com/how-to-resolve-jsessionid-for-the-first-time-in-the-url-tp16340508p16340508.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-resolve-jsessionid-for-the-first-time-in-the-url-tp16340508p16345239.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
