tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Newbie: CSS not taking effect
Date Fri, 31 Jul 2009 16:19:14 GMT
Roman Sokolyuk wrote:
> Thank you very much for your time.
> This fixed the problem.
>
> I have only one question. How does the browser determine which parts of the
> URL to strip?
>
> On Fri, Jul 31, 2009 at 11:07 AM, André Warnier <aw@ice-sa.com> wrote:
>
>   

One way to handle the paths in jsps is to use something like
${pageContext.request.contextPath}/webapp_relative_path/to_my_resource.css. 
The ${...} stuff is a JSTL expression evaluated at request time.  The
net effect is a server relative path that can change as the webapp's
path changes.  Very stable.

--David



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


Mime
View raw message