I'm using the forwards in my struts-config to configure static paths for
images, stylesheet, and javascript files:

<forward name="styles" path="/styles" />
<forward name="scripts" path="/scripts" />
<forward name="images" path="/images" />

And in my baseLayout.jsp (for Tiles), I have the following:

<style type="text/css" media="screen">
        @import "<html:rewrite forward='styles'/>/leftmenu.css";
</style>
<script src="<html:rewrite forward='scripts'/>/global.js"
type="text/javascript"></script>

This results in:

<style type="text/css" media="screen">
@import
"/onpoint/styles;jsessionid=E9D4E67555F5B5493253B32673D22562/leftmenu.css";
</style>
<script
src="/onpoint/scripts;jsessionid=E9D4E67555F5B5493253B32673D22562/global.js"
type="text/javascript"></script>

Is there anyway to fix this without coding a path to each file in my
struts-config.xml?

Thanks,

Matt



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to