You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/07/05 16:22:16 UTC

DO NOT REPLY [Bug 35615] New: - Not able to display image when url-pattern is "/" in web.xml

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35615>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35615

           Summary: Not able to display image when url-pattern is "/" in
                    web.xml
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: nihar_pattanaik@mindtree.com


In JSP i've used img tag like <img
src="<%=request.getContextPath()%>/images/g_logo_rciworks.gif" width=208
height=80 border=0 alt="">
but not getting the image displayed on the UI when deploying with Struts
Framework and getting  
"Jul 5, 2005 6:31:46 PM org.apache.struts.action.RequestProcessor processMapping
SEVERE: Invalid path /images/g_logo_rciworks was requested" error on
console.Though img properties shown the path as
"http://localhost:7001/admin/images/g_logo_rciworks.gif" which is correct where
"/admin" is my context-path. 

My web.xml mapping shows this..
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>

This is working fine when i changed the url-pattern to something else like "/xxx/*".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org