Hello, If what you need is to redirect any request to http://www.yoursite.com/yOuRwEbapP (yourwebapp being case insensitive) to http://www.yoursite.com/yourwebapp (yourwebapp being case sensitive and being the context path to which you have deployed your app to), what you need is a servlet filter. Note that what is called "the context path" is only the "yourwebapp" part, the "www.yoursite.com" is not a part of it, strictly speaking.
http://www.ibm.com/developerworks/java/library/j-tomcat2/ http://www.ibm.com/developerworks/java/library/j-tomcat/ Quoting this source, basically "a filter enables Web application developers to create flexible application components that could be inserted and chained into the application server's request flow -- before and after the actual request was processed". It allows you to monitor & modify every single request coming to your Tomcat and then, to modify (forward) the requested URL, for instance. Yours, Pierre Goupil On Mon, Aug 11, 2008 at 12:27 PM, persistence k <[EMAIL PROTECTED]>wrote: > thanks for your reply. > > I'm using FC5 linux, tomcat 5.028 for my web app. > > Currently my webapp context path is in upper case, and as per the > requirement we need to make the context path case insensitive > just as www.google.com and WWW.GOOgle.COM point to same application. Case > sensitivity shouldn't be a matter for my context path. > > Yes, i do need users to be able to type in either case initially and to be > directed to the same webapp but instead of deploying multiple variants of > the same application, can you suggest me how to create a case insensitive > context path for my web app. > > > Regards, > -Persistence > > > > > > On Mon, Aug 11, 2008 at 3:39 PM, Peter Crowther < > [EMAIL PROTECTED] > > wrote: > > > > From: persistence k [mailto:[EMAIL PROTECTED] > > > Can anybody tell me how to make context path of a web application case > > > insensitve. > > > I need a case insenstive context path for my web application. > > > > Do you need a case insensitive context path, or do you need users to be > > able to type in either case initially and to be directed to the same > webapp? > > If it's the latter, you could deploy your webapp at one variant of the > > context path (say the lowercase one) and deploy a small webapp at the > other > > that simply redirects to the lowercase version. > > > > If you genuinely need a case insensitive context path, can you give us > some > > more details about what you're trying to do? Also, what OS, and what > > version of Tomcat? > > > > - Peter > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >