[
https://issues.apache.org/struts/browse/WW-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42301
]
Amaury Crickx commented on WW-2042:
-----------------------------------
Hmmm... easy one ;-) not a bug !
struts sometimes has static to serve : javascript and css files, ...
If you look inside FilterDispacher.doFilter() method, you'll see that if it
can't find an action mapping, before passing through to the next filter, it
first finds out if the actual path starts with "/struts" and tries to find the
relevant static files request edif that is the case.
try adding <s:head/> inside the html <head> tags and see for yourself what gets
added there.
> struts-power.gif does not display
> ---------------------------------
>
> Key: WW-2042
> URL: https://issues.apache.org/struts/browse/WW-2042
> Project: Struts 2
> Issue Type: Bug
> Components: Examples
> Affects Versions: 2.0.8
> Environment: Linux, struts2-core 2.0.8, jetty 6.1.0
> Reporter: Peter Milne
> Fix For: Future
>
>
> This bug is still not fixed in 2.0.8
> In the blank Maven prototype I used following code in Welcome.jsp
> <p><a href="http://struts.apache.org/">
> <img src="<s:url value="/struts-power.gif"/>"
> alt="Powered by Struts" border="0px" /></a>
> </p>
> Only the alt text displays. struts-power.gif is located in context root. The
> img tag is rendered correctly but
> http://localhost:8080/blank/struts-power.gif reports
> HTTP ERROR: 404
> NOT_FOUND
> RequestURI=/blank/struts-power.gif
> Renaming struts-power.gif to strut.gif and amending s:url image then displays
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.