Override Dispatcher request variables

I have written a request wrapper at the front controller level...

If i type the url like www.mydomain.com/album my pages are displayed well, the controller configs the pages and dispatch to real jsp file.

But if i type url like www.mydomain.com/album/13 the jsp pages are displayed but the page cannot import js,css,images etc. Because the dispatcher thinks that my path to images is www.mydomain.com/album/images/.... So my pages are missdisplayed! (Correct one is www.mydomain.co/images/...)

Which GLOBAL variable i must override on the request object? I have tried Globals.INCLUDE_SERVLET_PATH_ATTR but it still didnt work?

Please any pro friend help me to get it worked!

Thank you

[721 byte] By [netsonicca] at [2007-11-27 11:59:25]
# 1

i have printed all the global variables of the request object. And change same one but the dispatcher behaviar is not related with the request object.

Tomcat still thinks that the request path is www.mydomain.com/album/images instead of www.mydomain.com/images

now i am thinkng about it can be related with servletContext attiributes.

any idea? :(

netsonicca at 2007-7-29 19:25:31 > top of Java-index,Java Essentials,Java Programming...