> From: ARPON Mart�n DST <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 28, 2001 10:35 AM
> 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 ?

I haven't tried it, and I'm not that familiar with all the details of
how servlet mapping works, but at first glance this seems a
straightforward use of the servlet mapping rules that do extension
mapping.  Have you tried that?  You might check out the spec for more
info.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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

Reply via email to