You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/03/14 09:04:01 UTC

DO NOT REPLY [Bug 34000] New: - the attribute "url-pattern" of web.xml doesn't work properly on mapping by extenstions

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=34000>.
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=34000

           Summary: the attribute "url-pattern" of web.xml doesn't work
                    properly on mapping by extenstions
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: grig@supportwizard.com


create a servlet map

  <servlet-mapping>
    <servlet-name>javascript</servlet-name>
    <url-pattern>*.js</url-pattern>
  </servlet-mapping>

Expected result: it should process only *.js, not *.js* (like JSP, JSPF, JSF 
etc.)

Real result: the servlet processes all of requested resources with 
extensions "js*" , i.e. it takes *.jsp, *.js, *.jspf like if url-pattern was 
set to 

<url-pattern>*.js*</url-pattern>

-- 
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org