Thanks Terrence! Cheers, Chris
On Aug 24, 2011, at 11:27 AM, Terence M. Bandoian wrote: > On 1:59 PM, Mattmann, Chris A (388J) wrote: >> Thanks for your reply Chuck. >> >> It looks like you can do what I'm suggesting, but it's pretty complex. I'm >> also >> wondering why this isn't part of Tomcat proper. It would seem to be a very >> useful tool to include. >> >> An ALv2 licensed type of filter that does things like the URLRewrite Filter. >> Another thing too is that this filter seems to do a huge superset of what >> I'm actually looking for. I'm really just looking for something simple, with >> a >> limited config, something like: >> >> <url path=fictionbooks" >> origPath=books"> >> <param name=ategory" value="fiction"/> >> <param name=omething else" value="${env.SOMEPROPERTY}"/> >> </url> >> .... >> >> I might just write a plugin that does that and contribute it back to the >> Apache Tomcat community. Would folks here find that useful? >> >> Cheers, >> Chris >> >> On Aug 24, 2011, at 8:03 AM, Caldarale, Charles R wrote: >> >>>> From: Mattmann, Chris A (388J) [mailto:chris.a.mattm...@jpl.nasa.gov] >>>> Subject: Is there a way to bake in URL parameters to a URL path? >>>> What I would like to be able to do is to set up, via >>>> configuration, the ability to map a new URL, say: >>>> >>>> http://myhost/fictionbooks >>>> >>>> To >>>> >>>> http://myhost/books?category=ction >>> The usual way to do this is with a filter, and the usual filter is the one >>> here: >>> http://www.tuckey.org/urlrewrite/ >>> >>> - Chuck >>> >>> >>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >>> MATERIAL and is thus for use only by the intended recipient. If you >>> received this in error, please contact the sender and delete the e-mail and >>> its attachments from all computers. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >> >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> Chris Mattmann, Ph.D. >> Senior Computer Scientist >> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA >> Office: 171-266B, Mailstop: 171-246 >> Email: chris.a.mattm...@nasa.gov >> WWW: http://sunset.usc.edu/~mattmann/ >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> Adjunct Assistant Professor, Computer Science Department >> University of Southern California, Los Angeles, CA 90089 USA >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Hi, Chris- > > You might also consider using, for example: > > http://myhost/books/fiction > > And then map your servlet as: > > <servlet-mapping> > <servlet-name>your_books_servlet</servlet-name> > <url-pattern>/books/*</url-pattern> > </servlet-mapping> > > Somewhere, possibly in your books servlet, you'd have to extract the > category (fiction, in this case) from the path info. > > -Terence Bandoian > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: chris.a.mattm...@nasa.gov WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org