I think the syntex is something like <servlet-mapping> <url-pattern>*.html</url-pattern><servlet-name>nameOfServletUWant2Use</servl et-name> </servlet-mapping>
in web.xml file. ----- Original Message ----- From: "Gang Zhang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 8:31 PM Subject: Re: Action Servlet?? > There is a way in servlet spec that you can map any extension to a servlet. > This is how some engines implement jsp files, they just map *.jsp to jsp > servlet so when ever jsp are requested, it is compiled and run instead of > the plain jsp file. > Gang > ----- Original Message ----- > From: "Wil Moore III" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 31, 2002 5:49 PM > 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 > > > > > > ___________________________________________________________________________ > 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 > > ___________________________________________________________________________ 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