Maybe you can try doing this in the web.xml:
<servlet>
<servlet-name>
ServletX
</servlet-name>
<servlet-class>
ServletX
</servlet-class>
<init-param>
<param-name>pathinfo</param-name>
<param-value>/home/jim/testFile</param-value>
</init-param>
</servlet>
You can get this value by using the getInitParameter("paramname") within
your servlet code
Ram
>From: "Collins, Jim" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Calling the same servlet regardless of the URL
>Date: Fri, 12 Jan 2001 18:57:50 -0000
>
>Hi,
>
>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:
>http://myhost:8080/servletLaunch/servlet/servletLaunch/home/jim/testFile
>
>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
>exist.
>I have tried various different configurations for the url-pattern element
>of
>servlet-mapping, none of which I have managed to get to work.
>
>Any help would be greatly appreciated.
>
>Thanks.
>
>Jim.
>
>
>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: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]