You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2012/12/06 14:27:00 UTC
[jira] [Resolved] (WW-3930) Cannot access plugin (.jar) static
resources via "/struts" or "/static" URL
[ https://issues.apache.org/jira/browse/WW-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart resolved WW-3930.
-------------------------------
Resolution: Not A Problem
> Cannot access plugin (.jar) static resources via "/struts" or "/static" URL
> ---------------------------------------------------------------------------
>
> Key: WW-3930
> URL: https://issues.apache.org/jira/browse/WW-3930
> Project: Struts 2
> Issue Type: Bug
> Components: Dispatch Filter
> Affects Versions: 2.3.7
> Environment: Struts 2.3.7
> Reporter: Yoseph Stephen
> Priority: Minor
> Labels: plugin, resource, static
> Fix For: 2.3.8
>
> Attachments: test-plugin.jar
>
>
> I try creating a simple plugin (guided by http://struts.apache.org/2.3.7/docs/plugins.html) with the following structure:
> - src
> -- com
> --- test
> ---- TestAction.java
> -- WEB-INF
> --- content
> ---- hello.vm
> -- static
> --- test.js
> -- struts-plugin.xml
> Everything works fine (action can be accessed), except I cannot access the static resources using URL: http://host/app_context/static/test.js. I have also tried the "struts/test.js" url, it doesn't work either (shows 404 page). I have also set the "struts.serve.static" constant to "true".
> I have checked the plugin .jar contains the static folder and the test.js file in it.
> Need fix ASAP. Thx
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira