tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thompson,Roger" <thomp...@oclc.org>
Subject Trying to respond to s symbol both as a context (webapp) and as a request
Date Tue, 05 Feb 2008 16:48:31 GMT
Background: Tomcat 5.5.20
 
I am devolping a web service to provide vocabulary in a library setting.
The service will be located at:
http://tspilot.oclc.org/
 
One of the vocabularies is named "gsafd"
I need to respond differently to:
http://tspilot.oclc.org/gsafd
vs
http://tspilot.oclc.org/gsafd/
 
In the first case, I need to provide an XML document that gives a
description of the vocabulary.  I'm trying to do this from the ROOT
webapp.  In the second case, I am providing an SRU explain response.  I
have managed to accomplish the second case via URL rewrite rules in the
gsafd webapp's web.xml.  It appears that TOMCAT adds the trailing slash
to the URL if it is not present and so route the request through the
gsafd context.  How do I set up TOMCAT not to do this so the first form
is processed through the ROOT webapp.  There will be other vocabularies:
lcsh, lcshac, mesh, and fast as well as other that have to respond the
same way.
 
Ciao,
 
Roger
Thompson

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message