Hi Malcom, > In the latest spec. (2.2) there seems to be some confusion > about the mapping between URIs and servlets. > > In the section in 5.4 (Request Path Elements) the example > of pattern /lawn and /garden, for example, would not > resolve to LawnServlet and GardenServlet, according to > the servlet mapping rules in section 10.2 > > Surely the patterns are /lawn/* and /garden/* instead. Yes you are right. In section 10.2 we state that in the /lawn pattern case that the container should only look for an exact match. So in Table 2 (5.4) the breakdown is not correct. What the example in 5.4 should be, to clarify, is: Table 1: Servlet Mapping Pattern: /lawn/* Servlet: LawnServlet Table 2: Request Path: /catalog/lawn/index.html Context Path: /catalog Servlet Path: /lawn PathInfo: /index.html and, as you say, the same for /garden/*. Thank you for bringing this up. We have a couple of other errata/clarifications to make - I hope to post them out later to everyone this week or early next week. > > Also, there is nothing in the specification to say what > the following methods do: > > getMinorVersion() Returns the minor version of the Servlet API that this servlet container supports. All implementations that comply with Version 2.2 must have this method return the integer 2. > getMajorVersion() Returns the major version of the Java Servlet API that this servlet container supports. All implementations that comply with Version 2.2 must have this method return the integer 2. > getServerInfo() Returns the name and version of the servlet container on which the servlet is running. The form of the returned string is servername/versionnumber. For example, the JavaServer Web Development Kit may return the string JavaServer Web Dev Kit/1.0. The servlet container may return other optional information after the primary string in parentheses, for example, JavaServer Web Dev Kit/1.0 (JDK 1.1.6; Windows NT 4.0 x86). (from the javadoc: http://java.sun.com/products/servlet/2.2/javadoc/index.html) - Danny Dr Danny Coward Web Java, Java Software Group Sun Microsystems [EMAIL PROTECTED] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html