You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Yoseph Stephen (JIRA)" <ji...@apache.org> on 2012/11/30 07:55:57 UTC
[jira] [Updated] (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 ]
Yoseph Stephen updated WW-3930:
-------------------------------
Description:
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".
Need fix ASAP. Thx
was:
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".
Need fix ASAP. Thx
> 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: Blocker
> Labels: plugin, resource, static
>
> 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".
> 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