struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Thibaudeau" <>
Subject [S2] <sx:head> and the scripts paths
Date Tue, 01 Jul 2008 02:01:24 GMT
I am playing with Struts 2.1.2.   (I have seen several other related topics
on this mailing list but nothing quite explicitely about what follows.)

I add the following tag inside the <head>:

<sx:head baseRelativePath="../scripts/dojo" debug="true" cache="false"
compressed="false" />

Unsurprisingly, this yields the following in the html:

<script language="JavaScript" type="text/javascript">
// Dojo configuration
djConfig = { isDebug: true, bindEncoding: "UTF-8", baseRelativePath:
"../scripts/dojo", baseScriptUri: "../scripts/dojo", parseWidgets : false };
<script language="JavaScript" type="text/javascript"

So far so good.  The problem is what follows:

<script language="JavaScript" type="text/javascript"
<link rel="stylesheet" href="/myapp/struts/xhtml/styles.css"
<script language="JavaScript" src="/myapp/struts/utils.js"
<script language="JavaScript" src="/myapp/struts/xhtml/validation.js"
<script language="JavaScript" src="/myapp/struts/css_xhtml/validation.js"

Where do these paths come from?  I certainly don't have a struts/ folder
inside my WebRoot...  Wasn't the "baseRelativePath" parameter of the
<sx:head> tag supposed to deal with that kind of issues?  Is there a way of
customizing this?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message