The "Extra Path" portion of the URL is intended for this kind of
requirement. Take a look at HttpServletRequest.getPathInfo(). You just
add your file name to the end of the servlet URL like -
http://myhost/myservlet/movies.htm
Actually perhaps the motivation for your requirement is unclear. If you
can add "/movies.htm" to the URL as shown in your example, why not just
have
http://server/myservlet?file=movies.htm
Paul Copeland, JOT Object Technologies -- http://www.jotobjects.com
>
> Date: Wed, 31 Jul 2002 15:49:37 -0700
> From: Wil Moore III <[EMAIL PROTECTED]>
> Subject: Action Servlet??
>
> I wanted to create a web app that performs some action upon any file that is
> called from the web server.
> For instance: a user calls http://server/movies.htm
>
> Would it be possible to have a servlet take a specific action on movies.htm
> instead of just having the web server display movies.htm?
>
> If so, how do I do this. If it is an application server or servlet container
> specific thing, please let me know details on the one you know about.
>
> -Wil
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html