[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Dojo Plugin, serving static files from a non-root location.
From:       Lukasz Lenart <lukaszlenart () apache ! org>
Date:       2016-12-01 7:51:45
Message-ID: CAMopvkM8X1-71zDP16B+S-JWtNymeYZ0Qz867Z3Cdb9=8FxhTA () mail ! gmail ! com
[Download RAW message or body]

Have you tried define "baseRelativePath" in <sx:head/> ?

https://struts.apache.org/docs/dojo-head.html


or maybe you can try to override <sx:head/> template, it should be
possible at least with version 2.3.20. Copy [1] into
"template/ajax/head.ftl" locally in your project and adjust ${base}

[1] https://github.com/apache/struts/blob/support-2-3/plugins/dojo/src/main/resources/template/ajax/head.ftl


https://struts.apache.org/docs/extending-themes.html
https://struts.apache.org/docs/template-loading.html


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2016-11-30 5:18 GMT+01:00  <ts.resusturts@x76.eu>:
> Hi!
> 
> I have a Struts application set to a non-root url (i.e. url-pattern is set
> to "/strutsportal/*" instead of "/*").
> 
> How can I make the Dojo plugin understand that the built-in resources are at
> ""/strutsportal/struts/..." and not "/struts/dojo/struts_dojo.js"?
> 
> 
> I was looking if there was a way to configure DefaultStaticContentLoader,
> but it doesn't look like there is any relevant option in the
> "struts.properties" file
> 
> 
> This is using the 2.3.x branch.
> I know Dojo is deprecated but I'm stuck with it for now :)
> 
> Thank you
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic