tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vernon _" <v...@hotmail.com>
Subject Re: Application Path
Date Mon, 06 Nov 2006 22:51:21 GMT

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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>


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

_________________________________________________________________
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message