struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Zamani (JIRA)" <>
Subject [jira] [Commented] (WW-5021) Serve static resources from different namespace
Date Fri, 22 Feb 2019 12:59:01 GMT


Yasser Zamani commented on WW-5021:

{quote}I can't route /struts to my application for policy reasons.{quote}

You don't want to route {{/struts}} to your application because of policy reasons? Or you
can't route {{/struts}} to your application to enforce your policy? Where is this "your application"?
{{/struts}} means your root app is Struts and requested it and the root app itself is anticipated
to response to it, not any other app.

{quote}Because my application tried to load {{/struts/domTT.js}} and obviously my server was
throwing 404 for that.{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.

> Serve static resources from different namespace
> -----------------------------------------------
>                 Key: WW-5021
>                 URL:
>             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

View raw message