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="category" value="fiction"/>
<param name="something 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:[email protected]]
>> 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=fiction
>
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]