With all of the different responses to the problem I am getting, I think this might fall under a much needed section addition to the project site... 'best programming practices' similar to the link Mike gave us (http://radio.weblogs.com/0107789/stories/2002/11/02/webworkCookbook.html).
 
Current options:
 
1. linkstag module
2. have all actions extend a base class and have a getContextPath method for use w/ the EL
3. <webwork:url value="'/css/generic.css'"/>
 
Of course all of these work well...
 
Food for thought.
 
Justen Stepka
 
----- Original Message -----
Sent: Thursday, November 07, 2002 10:02 AM
Subject: [OS-webwork] relative path tag

Morning,
 
Currently I have the following in my JSP code...
 
<link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/css/generic.css" />
 
It would be nice to have something like the following...
 
<link rel="stylesheet" type="text/css" media="screen" href="<ww:contextPath />/css/generic.css" />
 
If there was such a tag I could pretty much remove all of my scriptlet code from my JSP pages...
 
Thougths?
 
Justen Stepka

Reply via email to