tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Application Path
Date Mon, 06 Nov 2006 22:37:43 GMT
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


Mime
View raw message