My bad the filter mapping has changed from /struts/*.
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/static/*</url-pattern>
</filter-mapping>
....Although the docs don't mention this, if you app is bigger and only
filter on the .action you need to map the static.
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/static/*</url-pattern>
</filter-mapping>
On 08/10/2023 12:30, Łukasz Lenart wrote:
Maybe serving static content is disabled
https://struts.apache.org/core-developers/static-content
(mobile)
W dniu niedz., 8.10.2023 o 13:23 Greg Huber<gregh3...@gmail.com>
napisał(a):
All I get is a 404
Loading failed for the <script> with source
“http://www.xx.xx/static/domTT.js
<http://www.xx.xx/static/domTT.js>”.
There is nothing inhttp://www.xx.xx/struts/domTT.js
I can see the files are in the core jar but what maps it to the url?
On 08/10/2023 12:04, Lukasz Lenart wrote:
niedz., 8 paź 2023 o 12:52 Greg Huber<gregh3...@gmail.com> napisał(a):
Not to sure what you mean?
Its auto generated by
/core/src/main/resources/template/simple/form-close-tooltips.ftl
So then it supposed to work, as far as I can recall since Strutts 6.x
/struts resource path has been replaced by /static
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org