That can solve the problem. However, is it little silly to prefix
${pageContext.request.contextPath} into every single URLs in the JSP files?
Vernon
__________________________________________________________________________
Your local community information service - news, blogs, classifieds
http://www.vicina.info
Is there any reason you can't just have the paths composed dynamically?:
<img src="${pageContext.request.contextPath}/webapp/relpath/to/image.jpg"
/>
For the ROOT webapp, the expression will return an empty path, so it's
always correct.
--David
Vernon _ wrote:
I have another new application deployed in a non-root directory. I need to
have absolute paths for CSS and Javascript in order to import them properly
with differenct level structure of JSP files. I can deploy it as the root
application or add the application name in the absolute path. Neither
solutions are very good. Any good practise to solve this issue?
Thanks,
Vernon
_________________________________________________________________
Find a local pizza place, music store, museum and moreĀ
then map the best
route! http://local.live.com?FORM=MGA001
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Try the next generation of search with Windows Live Search today!
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]