tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: tomcat & url rewrite
Date Wed, 16 Sep 2009 21:02:04 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William,

On 9/15/2009 9:45 PM, WILLIAMer wrote:
> There is no error with url rewrite.
> For item "pd1234",
> The url would be http://myDomain/item_pd1234.html and its fine.

Ok.

> For item "pd12/34"
> The url would be http://myDomain/item_pd12/34.html and got error.

What error?

> Because tomcat seems there is a directory named item_pd12under my
> application.

Tomcat does not care a lick about slashes anywhere in the URL. I would
venture a guess that either your URL mappings are incorrect or your code
does not gracefully handle a / in an item id.

> So, i say if the item include "/" char would get error.
> 
> At first, i didnt know the problem belong to tomcat or url-rewrite.
> Now, thanks the replies in this post.
> I know this is not tomcat problem.

I believe this is an application problem. Check your code to see how
product ids are being parsed. Again, what error are you getting?

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

iEYEARECAAYFAkqxUkwACgkQ9CaO5/Lv0PAm9QCdEbk+CeaNm1tPqM+FwIOa05Sd
CAsAoIbD+idmngmHVswTKDwKRp0yKyxi
=ygrS
-----END PGP SIGNATURE-----

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


Mime
View raw message