Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 49436 invoked from network); 13 Nov 2003 22:28:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Nov 2003 22:28:51 -0000 Received: (qmail 31473 invoked by uid 500); 13 Nov 2003 22:28:15 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 31442 invoked by uid 500); 13 Nov 2003 22:28:15 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 31419 invoked from network); 13 Nov 2003 22:28:14 -0000 Received: from unknown (HELO madmail02.fiskars.com) (64.73.39.52) by daedalus.apache.org with SMTP; 13 Nov 2003 22:28:14 -0000 Received: from madmail01.fiskars.com ([10.5.50.218]) by madmail02.fiskars.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 13 Nov 2003 16:28:20 -0600 Received: from fiskars.com ([10.5.200.72]) by madmail01.fiskars.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 13 Nov 2003 16:28:21 -0600 Message-ID: <3FB40583.80501@fiskars.com> Date: Thu, 13 Nov 2003 16:28:19 -0600 From: Brice Ruth Organization: Fiskars Brands, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: how to disable (or work around) jsessionid in html:img sources References: <3F959B24.7030403@fiskars.com> <3F968702.3030401@fiskars.com> <3F9689A1.1030303@pasteur.fr> <3F968AF1.4080002@fiskars.com> <3F968C81.7080503@pasteur.fr> <1066832046.3f9690ae09072@internal.dotech.com> In-Reply-To: <1066832046.3f9690ae09072@internal.dotech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 13 Nov 2003 22:28:21.0506 (UTC) FILETIME=[71C26620:01C3AA35] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Btw, Kris - I just had to make use of this code that you provided, and it works perfectly. Sweet! Kris Schneider wrote: >If you can accomplish what you want via Apache rewrite rules, that seems like a >simpler solution. If that doesn't work out, here's a JSP/JSTL equivalent of how > comes up with the module path: > ><%@ page import="org.apache.struts.Globals" %> ><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> ><%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %> > > > > > > > > value="${pageContext.request.contextPath}${prefix}"/> > >"> > >Quoting dutrieux : > > > >>Maybe you can try, But I think the impacts is all pages send to apache >>then all virtualhosts defiend by the mod_jk. >> >>Ruth, Brice a �crit : >> >> >> >>>Is this something I can do at a global level, so that it impacts all >>>virtualhosts defined by the mod_jk auto configuration file generated >>>by Tomcat's connector? >>> >>>dutrieux wrote: >>> >>> >>> >>>>Hello >>>> >>>>For Apache v3.x you need to put in "httpd.conf" file this entry : >>>> >>>>RewriteRule ^(.*);jsessionid=.*$ $1 [L] >>>> >>>>Best regards >>>> >>>>Olivier Dutrieux >>>>* >>>> >>>>* >>>>Ruth, Brice a �crit : >>>> >>>> >>>> >>>>>Ruth, Brice wrote: >>>>> >>>>> >>>>> >>>>>>Hi. I'm using html:img in certain tiles that are used from very >>>>>>different places in my application with the "page" attribute to >>>>>>take advantage of module-relative naming for the image sources. >>>>>>However, when cookies aren't enabled, or on the first visit to the >>>>>>web application (with no session cookie having been previously >>>>>>detected), the ';jsessionid=X' gets added to the end of the image. >>>>>>Now, I'm not driving any dynamic images, nor do I intend to, so >>>>>>this sessionid is worthless to me. Furthermore - since I'm using >>>>>>Apache+Tomcat+mod_jk to serve this application, Apache seems to >>>>>>choke on serving up this image. I expect its because the sessionid >>>>>>is delimited by ';' instead of '?' as I'm used to, but maybe not. >>>>>> >>>>>>Either way - does anyone know of a way to get around this? If >>>>>>possible, I'd prefer not having to do anything special in the >>>>>>Apache conf, mainly because I'm using the auto-generated mod_jk >>>>>>conf file for this configuration. >>>>>> >>>>>>Thanks! >>>>>> >>>>>> >>>>>> >>>>>Any takers on this? This is kinda hosin' up my Apache/Tomcat setup >>>>>... Tomcat standalone serves up the images fine with the jsessionid >>>>>junk, but Apache doesn't! >>>>> >>>>> >>>>> >>>>--------------------------------------------------------------------- >>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org >>>> >>>> >>>> >>-- >> >>------------------------------------------------------------------------ >>*Olivier Dutrieux* >>------------------------------------------------------------------------ >> >>------------------------------------------------------------------------ >> >>Institut Pasteur >>Informatique de gestion >>& >>Micro-Informatique >> >>25-28 rue du Docteur Roux >>75724 PARIS CEDEX 15 >> >>------------------------------------------------------------------------ >>Tel: +33 (0) 1 40 61 31 62 >>Fax: +33 (0) 1 45 68 89 89 >> >>------------------------------------------------------------------------ >> >> > > > -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org