Martin,
Create a servlet mapping for *.xml to map to your servlet. Then use the
properties of the Servlet Request object passed in to your servlet's handler
method to determine which file the user is requesting (for example
getPathInfo(), etc...).
- Mark Brubaker
Infinite Technology, Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: ARPON Martín DST [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 10:36 AM
To: [EMAIL PROTECTED]
Subject: redirecting a page to a servlet
I 'm using Apache + TomCat.
I 'm developing a very simple servlet that takes an xml file for imput,
reads its <xml:stylesheet...> tag, loads the associated XSL and
outputs plain HTML.
The question is: is there any way I can configure Apache or Tomcat
to be able to redirect any request made to a static file with extension
.xml to my servlet ?
The point is: I have my server full of static XML files. Till now, users
point their browsers to http://myserver.com/anyfile.xml and they get
the xml file. But, of course, they need IE 5 with MSXML 3.0 installed.
Can I configure the server in a way that the same URL redirects the
user to, for example:
http://myserver.com/servlet/myservlet?file=anyfile.xml ?
TIA,
Martin
___________________________________________________________________________
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