tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WILLIAMer <>
Subject Re: tomcat & url rewrite
Date Thu, 17 Sep 2009 02:04:40 GMT

Hi, Christopher Schultz-2 
Let me say sorry for i didnt description the error.
The error like the path is mapping incorrectly.
So the image or css are not display because of the path not find.

A part of my application structure like under

I set my application to be ROOT.
The url http://myDomain/ will go my application instead of

Why i say http://myDomain/item_pd12/34.html let me confuse? 
Because i didnt have the directory named item_pd12.

See my structure, if i want to see the Admin index page,
i will type the url http://myDomain/Admin/index.jsp.

So i think the "/" let tomcat explain there has directory relationship.
Is it wrong idea?

In my jsp code, i really write some code for image or css path.
Something like <%String sImagePath = "/myApp/images";%>.

For this case http://myDomain/item_pd12/34.html.
I guess tomcat will to find the directory named item_pd12 under /myApp dir
and didnt find my images though the sImagePath.

Another question, after i touch http://myDomain/item_pd12/34.html,
link other page would stuck with http://myDomain/item_pd12/otherPage.
But the really url i want would like http://myDomain/otherPage.

Maybe i need to improve my code though something like relative path instead
of absolute path.
Thanks for your patience.
View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message