The first page to be served up by the container will append the sessionid to the url. If cookies are enabled on the client (browser) then in subsequent requests the jsessionid will be stored in a cookie..
A redirect in your welcome file should do what you want. <c:redirect url="/login.do" /> The container can work out whether the browser has cookies or not from the initial request for the welcome file, from then on the jsessionid will be stored in a cookie. mark On 1/16/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote: > > Hi, > > this comes up every so often, that people don't want the session id in the > URL, so I put it in as request to change the spec, in order to be able to > switch off URL rewriting: > https://jsp-spec-public.dev.java.net/issues/show_bug.cgi?id=155, (BTW: I > just realized that it belongs in the Servlet one, not the JSP one ) > But so far I didn't get any answer, so it propably won't be in the next > webtier release (Servlet 2.5/ JSP 2.1). > > Bernhard > > > -----Ursprüngliche Nachricht----- > > Von: Marcelo Morales [mailto:[EMAIL PROTECTED] > > Gesendet: Samstag, 14. Januar 2006 19:50 > > An: Struts Users Mailing List > > Betreff: Re: [OT] jsessionid > > > > > > Helo > > > > There are three main methods for maintaing the session in HTTP > > (according to the java servlets standard): cookies, ssl session and > > URL rewriting. The jsessionid parameter is just a way of > > ensuring the > > session when the servlet container has yet to find out if the user > > agent will accept the cookie (which is the main mechanism). You > > should see jsessionid in each request if you configure your user > > agent to reject cookies. > > > > This is a Servlet or HTTP issue, so i put a OT in the subject line > > > > On Jan 13, 2006, at 11:37 PM, Rafael Taboada wrote: > > > > > Hi folks... > > > > > > Why does jsessionid appears in my application when I login???... > > > Where can I > > > disable this?? > > > > > > Thanks in advance > > > > > > -- > > > Rafael Taboada > > > Software Engineer > > > > > > Cell : +511-97753290 > > > > > > "No creo en el destino pues no me gusta tener la idea de controlar > > > mi vida" > > > > > > > > --------------------------------------------------------------------- > > 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] > >