tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <hassan.schroe...@gmail.com>
Subject Re: Newbie: CSS not taking effect
Date Fri, 31 Jul 2009 17:41:24 GMT
On Fri, Jul 31, 2009 at 9:19 AM, David Smith<dns4@cornell.edu> wrote:

> One way to handle the paths in jsps is to use something like
> ${pageContext.request.contextPath}/webapp_relative_path/to_my_resource.css.

OTOH, if you use the standard taglib to wrap all your urls, e.g.

   <a href="<c:url value='/foo.html'/>">foo</a>

they'll be both context-aware AND rewritten to use JSESSIONID for
keeping session if the client has cookies turned off.

Win-win  :-)
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

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


Mime
View raw message