[ 
https://issues.apache.org/jira/browse/WW-5021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773849#comment-16773849
 ] 

k918912 commented on WW-5021:
-----------------------------

@[~aleksandr-m]
{quote}Also does it matter which app will serve inner static resource? They 
should be the same.{quote}
They "should" be the same, if I'm always running the same Struts version in all 
my applications. This is not necessarily the case.
{quote}Based on what you choose correct tomcat / app? Why can't you use it for 
static resources?{quote}
Based on the namespace, all my actions are mapped to namespaces.
@[~yasser.zamani]
{quote}i.e. in your example, if your app is on /test, then Struts must resolve 
<@s.url value="/struts/domTT.js" includeParams="none" encode="false" /> to 
/test/struts/domTT.js (i.e. regarding and honoring current context path). 
Doesn't it?{quote}
Only *if* my app is in /test, but this is not the case, it is under /, so it 
resolves all static resources to /struts, but I need them to be in 
/test/struts. Also I can't let my application run under /test, because it has 2 
completely different namespaces, e.g. /test/action1 and /test2/action2.

> Serve static resources from different namespace
> -----------------------------------------------
>
>                 Key: WW-5021
>                 URL: https://issues.apache.org/jira/browse/WW-5021
>             Project: Struts 2
>          Issue Type: Task
>    Affects Versions: 2.5.20
>            Reporter: k918912
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 2.6
>
>
> Is it somehow possible to serve the static Struts files from a different path?
> Currently domTT.js is loaded via /struts, but in my environment I would like 
> to serve it via /test/struts for example. Is there any configuration I'm 
> missing or is this currently not possible?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to