struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "k918912 (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-5021) Serve static resources from different namespace
Date Fri, 22 Feb 2019 13:11:00 GMT

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

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

@[~yasser.zamani]
I think more explanation is needed. Root application doesn't mean that it's the main application.
{quote}The demand of /struts/domTT.js means your root app is Struts, isn't it?! If it is,
then it should work and 404 means another issue that should be investigated. If it isn't,
then I think you should investigate who has generated the /struts/domTT.js (without context
path) http request.{quote}
I know, there is no bug in Struts, it is generating the correct result *but* my load balancer
is only forwarding specific namespaces to my Struts application. So my load balancer gets
a request to /test and routes it to the "root" Struts application, which in turn has actions
mapped under /test, so everything works fine. Except for static resources, which I can't map
to a namespace (which is what this whole ticket is about). So my application is generating
/struts/domTT.js, but in my load balancer I can't (for company policy reasons) route /struts
to my application.

> 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)

Mime
View raw message