tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramkumar Manoharan" <>
Subject Re: Calling the same servlet regardless of the URL
Date Fri, 12 Jan 2001 21:15:00 GMT
Maybe you can try doing this in the web.xml:




You can get this value by using the getInitParameter("paramname") within 
your servlet code


>From: "Collins, Jim" <>
>To: "''" <>
>Subject: Calling the same servlet regardless of the URL
>Date: Fri, 12 Jan 2001 18:57:50 -0000
>I have a servlet: servletLaunch which I want to be called regardless of the
>URL (the web app is in the servletLaunch subdirectory of webapps). For
>example if I entered the URL:
>I want the servletLaunch servlet to be started with /home/jim/testFile
>passed to it as pathinfo. At the moment I am getting Not Found (404). I
>believe tomcat is trying to serve the file
>/servletLaunch/servlet/servletLaunch/home/jim/testFile which does not 
>I have tried various different configurations for the url-pattern element 
>servlet-mapping, none of which I have managed to get to work.
>Any help would be greatly appreciated.
>PLEASE READ: The information contained in this e-mail is confidential
>and intended for the named recipient(s) only. If you are not an intended
>recipient of this email you must not copy, distribute or take any
>further action in reliance on it and you should delete it and notify the
>sender immediately. Email is not a secure method of communication and
>Nomura International plc cannot accept responsibility for the accuracy
>or completeness of this message or any attachment(s).  Please check this
>e-mail for virus infection, for which Nomura International plc accepts
>no responsibility. If verification of this email is sought then please
>request a hard copy. Unless otherwise stated any views or opinions
>presented are solely those of the author and do not represent those of
>Nomura International plc. This email is intended for informational
>purposes only and is not a solicitation or offer to buy or sell
>securities or related financial instruments. Nomura International plc is
>regulated by the Securities and Futures Authority Limited and is a
>member of the London Stock Exchange.
>To unsubscribe, e-mail:
>For additional commands, email:

Get your FREE download of MSN Explorer at

View raw message