struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: [S2] <sx:head> and the scripts paths
Date Tue, 01 Jul 2008 02:07:34 GMT
"struts" maps to a folder inside the struts-core jar. Those files are
used for validation and are not related to dojo (nothing to do with
"head" tag)

musachy

On Mon, Jun 30, 2008 at 10:01 PM, Pierre Thibaudeau
<pierre.thibaudeau@gmail.com> wrote:
> 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>
> <script language="JavaScript" type="text/javascript"
> src="../scripts/dojo/dojo.js.uncompressed.js"></script>
>
> So far so good.  The problem is what follows:
>
> <script language="JavaScript" type="text/javascript"
> src="/myapp/struts/ajax/dojoRequire.js"></script>
> <link rel="stylesheet" href="/myapp/struts/xhtml/styles.css"
> type="text/css"/>
> <script language="JavaScript" src="/myapp/struts/utils.js"
> type="text/javascript"></script>
> <script language="JavaScript" src="/myapp/struts/xhtml/validation.js"
> type="text/javascript"></script>
> <script language="JavaScript" src="/myapp/struts/css_xhtml/validation.js"
> type="text/javascript"></script>
>
> 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?
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message