-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul,

On 8/3/2009 11:03 AM, Paul Taylor wrote:
> Hi writing web app to replace an existing open source application
> (musicbrainz lucene search)  that handles queries of the form
> http://<host>/?query=...&type=...&fmt=... and also the alternative form
> of http://<host>/ws/type/?query&fmt=... using something called
> lighttpd.conf ,
> http://bugs.musicbrainz.org/browser/search_server/branches/lucene_server/admin/lighttpd.conf
> 
> 
> My servlet only handles the first case at the moment how would/Should I
> achieve this conversion using Apache Tomcat ( version 6)

If you're looking for URL rewriting in Java, you need go no further than
http://tuckey.org/urlrewrite/

If you're trying to rewrite URLs in a web server sitting in front of
Tomcat, you'll need to look at the documentation for that web server to
see what options are available. Apache httpd has mod_rewrite, and I have
no idea what lighttpd supports.

I'm not sure you really need rewriting, since you could just map
/ws/type/ to the same servlet that handles requests to /

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkp4Z80ACgkQ9CaO5/Lv0PDHsACeOWdw7niiSoj00fo7WMWF+Dtw
VMUAoIEkOc+FqHGl3f3gSI9qT4FKZ+Uy
=4gOu
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to