Well, what you basically want to do is disable URL Rewriting. What I saw so far it's not explicitly possible via the spec, but what you can do is just not encoding the URL. So I don't know struts, but can you not just use plain link? An alternative would be to dig in the code of <html:link> and search for the URL Encoding there and remove this. There must be something like "encodeURL" in the source code, which causes the session id to be appended.
Bernhard > -----Ursprüngliche Nachricht----- > Von: Assaf [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 22. September 2005 18:49 > An: Tomcat Users List > Betreff: Re: AW: Removing session id from url links > > > Thanks Bernard, > > My problem is to do with Search Engine bots. They seem > to be getting jsessionid when they crawl and do not > remove them. This causes them to index pages INCLUDING > the session id and therefore it appears on the search > engine listing. Any way to remove that? > > Assaf > > --- Bernhard Slominski > <[EMAIL PROTECTED]> wrote: > > > The session ids in the URL (URL Rewriting) are only > > used when cookies are > > switched off as a fallback, so when cookies are > > switched on on your machine > > you shouldn't see the session Id in the URL. > > > > When you don't need a seesion on your page you can > > use this page directive > > to switch off the session, so you won't have > > anything in the URL: > > <%@ page session="false" %> > > > > Cheers > > > > Bernhard > > > > > -----Ursprüngliche Nachricht----- > > > Von: Assaf [mailto:[EMAIL PROTECTED] > > > Gesendet: Donnerstag, 22. September 2005 13:40 > > > An: Tomcat Users List > > > Betreff: Removing session id from url links > > > > > > > > > Hi, > > > > > > I have a problem with tomcat displaying urls on my > > > site that include the jsessionid attached at the > > end. > > > This is particularly a problem with search engine > > who > > > crawl the site and index the page including the > > > session id. > > > > > > Is there a way to disable it? > > > > > > I am also using struts <html:link> so that might > > be > > > the place to disable. > > > > > > Cheers, > > > > > > Assaf > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.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] > > > > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.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]