Java(TM) Servlet
Servlet - 2.5
Specification Assertion Detail

TotalsTotalActiveDeprecatedRemoved
# of Assertions 349332314
# of Required Assertions 315301311
# of Optional Assertions 343103

IDChapterSectionDescriptionRequiredDependencyImplementation SpecificDefined byStatusTestable
Servlet:SPEC:112All servlet containers must support HTTP/1.0 and HTTP/1.1 protocolstrue
falsetechnologyactivetrue
Servlet:SPEC:212J2SE 5.0 is the minimum version of the underlying Java platform with which containers must be built.true
falsetechnologyactivefalse
Servlet:SPEC:322A servlet hosted in a non-distributed environment, the servlet container must use only one instance per servlet declaration.true
falsetechnologyactivetrue
Servlet:SPEC:422A servlet deployed as part of an application marked in the deployment descriptor as distributable, a container may have only one instance per servlet declaration per virtual machine (VM).true
falsetechnologyactivefalse
Servlet:SPEC:523The life cycle of a servlet is expressed in the API by the 'init', 'service', and 'destroy' methods of the javax.servlet.Servlet interface that all servlets must implement directly, or indirectly through the GenericServlet or HttpServlet abstract classes.true
falsetechnologyactivetrue
Servlet:SPEC:623.1The servlet container is responsible for loading and instantiating servlets. true
falsetechnologyactivetrue
Servlet:SPEC:6.123.1When the servlet engine is started, needed servlet classes must be located by the servlet container using normal Java class loading facilities.true
falsetechnologyactivefalse
Servlet:SPEC:723.2After the servlet object is instantiated, the container must initialize the servlet before it can handle requests from clients by calling the init method of the Server interface with a unique (per servlet declaration) object implementing the ServerConfig interface.true
falsetechnologyactivetrue
Servlet:SPEC:823.2.1The servlet container must not call the destroy method on a Servlet that threw an Exception during the initialization process.true
falsetechnologyactivetrue
Servlet:SPEC:923.2.1A servlet throwing an UnavailableException that indicates a minimum time of unavailability, the container must wait for the period of time specified to pass before creating and initializing a new servlet instance.true
falsetechnologyactivefalse
Servlet:SPEC:1023.3.1For servlets not implementing the SingleThreadModel interface, if the service method (or methods such as doGet or doPost which are dispatched to the service method of the HttpServlet abstract class) has been defined with the synchronized keyword, the servlet container must serialize request through it.true
falsetechnologydeprecatedtrue
Servlet:SPEC:1123.3.2If a permanent unavailability is indicated by the UnavailableException, the servlet container must remove the servlet from service, call its destroy method, and release the servlet instance.true
falsetechnologyactivetrue
Servlet:SPEC:11.123.3.2Any requests refused by the container by the cause, must be returned with a SC_NOT_FOUND(404) response.true
falsetechnologyactivetrue
Servlet:SPEC:1223.4When the servlet container determines that a Servlet should be removed from service, it must call the destroy method of the Servlet interface to allow the servlet to release any resources it is using and save any persistent state.true
falsetechnologyactivefalse
Servlet:SPEC:12.123.4Before the container calls the destroy method, it must allow any threads that are currently running in the service method of the servlet to complete execution, or exceed a server defined time limit.true
falsetechnologyactivefalse
Servlet:SPEC:12.223.4Once the destroy method is called on a servlet instance, the container must not route other requests to that instance of the Servlet.true
falsetechnologyactivefalse
Servlet:SPEC:12.323.4After the destroy method completes, the servlet container must release the servlet instance so that it is eligible for garbage collection.true
falsetechnologyactivefalse
Servlet:SPEC:1332There is only one instance object of the ServletContext interface associated with each web application deployed into a non-distributed container.true
falsetechnologyactivetrue
Servlet:SPEC:1432If the application is marked as distributed, and the container supports this functionality, the web application will have one instance of the ServletContext for each VM.true
falsetechnologyactivefalse
Servlet:SPEC:1532A default ServletContext must be made available to servlets not deployed as a web application.true
falsetechnologyactivefalse
Servlet:SPEC:15.132In a distributed container, the default ServletContext is non-distributable and must only exist in one VM.true
falsetechnologyactivefalse
Servlet:SPEC:1634Any attribute bound into a context (using the appropriate methods of the ServletContext interface) is available to any other servlet that is part of the same web application.true
falsetechnologyactivefalse
Servlet:SPEC:1736In the case where logical hosts (multiple logical hosts sharing one IP address), each logical host must have its own servlet context or set of servlet contexts.true
falsetechnologyactivefalse
Servlet:SPEC:1837Although a Container Provider implementation of a class reloading scheme for ease of development is not required, any such implementation must ensure that all servlets, and classes that they may use, are loaded in the scope of a single class loader.false
truetechnologyactivefalse
Servlet:SPEC:18.137The full semantics of notification to session binding listeners should be supported by containers for use in the monitoring of session termination upon class reloading.false
truetechnologyactivefalse
Servlet:SPEC:1937.1Servlet containers must provide a private temporary directory for each servlet context.true
falsetechnologyactivetrue
Servlet:SPEC:19.137.1The container must make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File.true
falsetechnologyactivetrue
Servlet:SPEC:19.237.1Servlet containers are required to ensure that the contents of the temporary directory of one servlet context is not visible to the servlet contexts of other Web applications running on the servlet container.true
falsetechnologyactivetrue
Servlet:SPEC:2041If a request parameter has more than one value, and are provided via a query string and a post body, the aggregation of the parameter values will result in the query string values being ordered before the post parameters.true
falsetechnologyactivetrue
Servlet:SPEC:2141Path parameters that are a part of a GET request (as defined by HTTP 1.1) are not exposed by any of the getParameter methods of the ServletRequest interface.true
falsetechnologyactivetrue
Servlet:SPEC:2241.1The following conditions must be met before post form data will be populated to the parameter set:true
falsetechnologyactivetrue
Servlet:SPEC:22.141.1The request is an HTTP or HTTPS requesttrue
falsetechnologyactivetrue
Servlet:SPEC:22.241.1The HTTP method is POSTtrue
falsetechnologyactivetrue
Servlet:SPEC:22.341.1The content type is application/x-www-form-urlencodedtrue
falsetechnologyactivetrue
Servlet:SPEC:22.441.1The servlet has made an initial call to any of the getParameter family of methods on the request object.true
falsetechnologyactivetrue
Servlet:SPEC:22.541.1If the outlined conditions are not met, the post data must be available to the servlet via the request object's input stream.true
falsetechnologyactivetrue
Servlet:SPEC:2344If the servlet used to process the request was matched with the '/*' pattern, getServletPath will return an empty string.true
falsetechnologyactivetrue
Servlet:SPEC:2444The path returned by getServletPath must begin with a slash '/'.true
falsetechnologyactivetrue
Servlet:SPEC:2544The path returned by getPathInfo must begin with a slash '/'true
falsetechnologyactivetrue
Servlet:SPEC:2647If a request has been transmitted over a secure protocol, such as HTTPS, the container must expose the following attributes to the servlet programmer:true
falseplatformactivetrue
Servlet:SPEC:26.147the javax.servlet.request.cipher_suite attribute is associated with a string value denoting the cipher suite used for the connection.true
falseplatformactivetrue
Servlet:SPEC:26.247The javax.servlet.request.key_size attribute will be associated with an Integer value denotied the encryption key size.true
falseplatformactivetrue
Servlet:SPEC:26.347The javax.servlet.request.X509Certificate request attribute will be associated with an array of java.security.cert.X509Certificates if the request was associated with an SSL certificate.true
falseplatformactivetrue
Servlet:SPEC:26.3.147The order of the array associated with the javax.servlet.request.X509Certificate request attribute will be in ascending order of trust, i.e. the first certificate in the chain is the one set by the client, the next is the one used to authenticate first, and so on.true
falseplatformactivetrue
Servlet:SPEC:2749The default encoding of a request the container uses to create the request reader and parse POST data must be "ISO-8859-1", if none has been specified by the client request.true
falsetechnologyactivetrue
Servlet:SPEC:2849Calling the setCharacterEncoding(String enc) method after the request data has been read will not affect the encoding of the data.true
falsetechnologyactivetrue
Servlet:SPEC:29410Each request object is valid only within the scope of a servlet's service method, or within the scope of a filter's doFilter method.true
falsetechnologyactivefalse
Servlet:SPEC:3051A servlet container is allowed, but not required, to buffer output going to the client for efficiency purposes.false
falsetechnologyactivefalse
Servlet:SPEC:3151If a response has been committed, and the reset or resetBuffer methods have been called, an IllegalStateException must be thrown, however, the response and its associated buffer will remain unchanged.true
falsetechnologyactivetrue
Servlet:SPEC:3251When a buffer is used, the container must immediately flush the contents of a filled buffer to the client. If this is the first data sent to the client, the response is now considered committed.true
falsetechnologyactivetrue
Servlet:SPEC:3352Any headers that are to be present in the response, must be set before the response is committed. Any headers set after the response is committed will be ignored by the servlet container.true
falsetechnologyactivetrue
Servlet:SPEC:3452Servlet containers must not set a default content type (Content-Type) header when the servlet programmer does not set the type.true
falsetechnologyactivetrue
Servlet:SPEC:3553If a partial URL is given and, for whatever reason, cannot be converted into a valid URL, then this method must throw an IllegalArgumentException.true
falsetechnologyactivetrue
Servlet:SPEC:3653sendError has the side effect of committing the response. Any headers added after calling this method will be ignored by the container.true
falsetechnologyactivetrue
Servlet:SPEC:3753sendRedirect has the side effect of commiting the response. Any headers added after calling this method will be ignored by the container.true
falsetechnologyactivetrue
Servlet:SPEC:3853If data has been written to the response buffer, but not returned to the client (i.e., the response is not committed), the data in the response buffer must be cleared and replaced with the data set by sendRedirect.true
falsetechnologyactivetrue
Servlet:SPEC:3953If data has been written to the response buffer, but not returned to the client (i.e., the response is not committed), the data in the response buffer must be cleared and replaced with the data set by sendError.true
falsetechnologyactivetrue
Servlet:SPEC:4053If data is written to the response after sendRedirect has been called, it will be ignored by the container.true
falsetechnologyactivetrue
Servlet:SPEC:4153If data is written to the response after sendError has been called, it will be ignored by the container.true
falsetechnologyactivetrue
Servlet:SPEC:4255The following events indicate that the servlet has satisfied the request and that the any remaining content in the response buffer is flushed to the client and the response object is to be closed:true
falsetechnologyactivetrue
Servlet:SPEC:42.155The termination of the service method.true
falsetechnologyactivefalse
Servlet:SPEC:42.255The amount of content specified in the setContentLength method of the response has been greater than zero and has been written to the response.true
falsetechnologyactivetrue
Servlet:SPEC:42.355The sendError method is called.true
falsetechnologyactivetrue
Servlet:SPEC:42.455The sendRedirectMethod is called.true
falsetechnologyactivetrue
Servlet:SPEC:4356Each response object is valid only within the scope of a servlet's service method, or within the scope of a filter's doFilter method.true
falsetechnologyactivefalse
Servlet:SPEC:4462.1After deployment of a web application, and before a request causes the container to access a web resource the container must locate the list of filters that must be applied to a particular resource.true
falsetechnologyactivefalse
Servlet:SPEC:4562.1when the developer passes a request or response object which extends HttpServletRequestWrappertion>The container must ensure that is has instantiated a filter of the appropriate class for each filter in the list, and called it's init(FilterConfig config) method.true
falsetechnologyactivetrue
Servlet:SPEC:4662.1If the exception thrown by a Filter is of type UnavailableException, the container may examine the isPermanent attribute of the exception and may choose to retry the filter at some later time.false
falsetechnologyactivefalse
Servlet:SPEC:4762.1Only onc instance per filter declaration in the deployment descriptor is instantiated per Java virtual machine of the container.true
falsetechnologyactivefalse
Servlet:SPEC:4862.1When the container receives an incoming request it takes the first filter instance in the list and calls its doFilter method, passing in the ServletRequest and ServletResponse, and a reference to the FilterChain object it will use.true
falsetechnologyactivetrue
Servlet:SPEC:4962.1Before a filter instance can be removed from service by the container, the container must first call the destroy method on the filter to enable the filter to release any resources and perform other cleanup operations.true
falsetechnologyactivefalse
Servlet:SPEC:5062.2When a filter invokes the doFilter method on the container's filter chain implementation, the container must ensure that the request and response object that is passes to the next entity in the filter chain, or the target web resource if the filter was the last in the chain, is the same object that was passed into the doFilter method by the calling filter.true
falsetechnologyactivetrue
Servlet:SPEC:5162.2When passes a request or response object which extends HttpServletRequestWrapper or HttpServletResponseWrapper into the request dispatcher, the request and response objects passed into the servlet invoked must be the same objects as were passed in. When passes a request or response object which does not extend HttpServletRequestWrapper or HttpServletResponseWrapper but does implement HttpServletRequest or HttpServletResponse into the request dispatcher, the request and response objects may be wrapped in order to satisfy the include or forward specification.true
falsetechnologyactivetrue
Servlet:SPEC:5262.4The order the container uses in building the chain of filters applied to applied for a particular request URI is:true
falsetechnologyactivetrue
Servlet:SPEC:52.162.4The url-pattern matching filter-mappings in the same order that these elements appear in the deployment descriptor.true
falsetechnologyactivetrue
Servlet:SPEC:52.262.4The servlet-name matching filter-mappings in the same order that these elements appear in the deployment descriptor.true
falsetechnologyactivetrue
Servlet:SPEC:5362.4Containers may cache filter chaing so that they do not need to compute them on a per request basis.false
truetechnologyactivefalse
Servlet:SPEC:5462.5If a <dispatcher> element for a particular <filter-mapping> is REQUEST, the filter will be applied to incoming client requests only.true
falsetechnologyactivetrue
Servlet:SPEC:5562.5If a <distpatcher> element for a particular <filter-mapping> is FORWARD, then the filter will be applied to a request being processed by a RequestDispatcher representing the web component matching the <url-pattern> or <servlet-name> using a forward() call.true
falsetechnologyactivetrue
Servlet:SPEC:5662.5If a <distpatcher> element for a particular <filter-mapping> is INCLUDE, then the filter will be applied to a request being processed by a RequestDispatcher representing the web component matching the <url-pattern> or <servlet-name> using a include() call.true
falsetechnologyactivetrue
Servlet:SPEC:5762.5If a <dispatcher> element for a particular <filter-mapping> is ERROR then the filter will only be applied when being processed by the error page mechanism.true
falsetechnologyactivetrue
Servlet:SPEC:5862.5If the <dispatcher> element is not present in a <filter-mapping> then the filters will only be applied against client requests.true
falsetechnologyactivetrue
Servlet:SPEC:5962.5The container must be able to support multiple <dispatcher> elements for a particular <filter-mapping>true
falsetechnologyactivetrue
Servlet:SPEC:6071.3If the client doesn't accept/support cookies, and session tracking is required/desired, the session id must be encoded as a path parameter in the URL string. true
falsetechnologyactivefalse
Servlet:SPEC:60.171.3The name of the path parameter must be 'jsessionid'.true
falsetechnologyactivetrue
Servlet:SPEC:6171.4Web container must be able to support HTTP session tracking while servicing HTTP request from clients that do no support the use of cookies.true
falsetechnologyactivefalse
Servlet:SPEC:6272A session is considered 'new' if either of the following are true:true
falsetechnologyactivetrue
Servlet:SPEC:62.172The client does not yet know about the session.true
falsetechnologyactivetrue
Servlet:SPEC:62.272The client chooses not to join a session.true
falsetechnologyactivetrue
Servlet:SPEC:6373HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookies used to establish the session, can be the same for different context, but the object references, including the attributes in that object, must never be shared between context by the container. Additionally, sessions of a context must be resumable by requests into that context regardless of whether their associated context was being accessed directly or as the target of a request dispatch at the time the sessions were created.true
falsetechnologyactivetrue
Servlet:SPEC:6474The valueBound method must be called before the object is made available vai the getAttribute method of the HttpSession interface.true
falsetechnologyactivefalse
Servlet:SPEC:6574The valueUnbound method must be called after the object is no longer available via the getAttribute method of the HttpSession interface.true
falsetechnologyactivefalse
Servlet:SPEC:6675The default timeout period for sessions is defined by the servlet container and can be obtained via the getMaxInactiveInterval method of the HttpSession interface.true
falsetechnologyactivefalse
Servlet:SPEC:6775Invalidation will not take effect until all servlets using that session have exited the service method.true
falsetechnologyactivetrue
Servlet:SPEC:6877.2Within an application marked as distributable, all request that are part of a session must be handled by one virtual machine at a time.false
falsetechnologyactivefalse
Servlet:SPEC:6977.2The container must be able to handle all objects placed into instances of the HttpSession class using the setAttribute or putValue methods appropriately, with the following restrictions:true
falsetechnologyactivefalse
Servlet:SPEC:69.177.2The container must accept objects that implement the Serializable interface.true
falsetechnologyactivefalse
Servlet:SPEC:69.277.2The container may choose to support storage of other designated objects in the HttpSession, such as references to Enterprise JavaBean components and transactions.false
falsetechnologyactivefalse
Servlet:SPEC:69.377.2Migration of sessions will be handled by container-specific facilities.false
truetechnologyactivefalse
Servlet:SPEC:7077.2The distributed servlet container must throw an IllegalArgumentException for objects where the container cannot support the mechanism necessary for migration of the session storing them.true
falsetechnologyactivefalse
Servlet:SPEC:7177.2The distributed servlet container must support the mechanism necessary for migrating objects that implement Serializable.true
falsetechnologyactivefalse
Servlet:SPEC:7277.2Distributed servlet containers must support the mechanism necessary for migrating objects that implements Serializable.true
falseplatformactivefalse
Servlet:SPEC:7377.2If distributed contains persist or migrate sessions to provide quality of service features, they are not restricted to using the native JVM Serialization mechanism for serializing HttpSessions and their attributes.false
truetechnologyactivefalse
Servlet:SPEC:7477.2Containers must notify any session attributes implementing the HttpSessionActivationListener during migration of a session. They must notify listeners of passivation prior to serialization of a session, and of activation after deserialization of a sessiontrue
falsetechnologyactivefalse
Servlet:SPEC:7582The Container provider must ensure that the dispatch of the request to a target servlet occurs in the same thread of the same VM as the original request.true
falsetechnologyactivefalse
Servlet:SPEC:19283The include method of the RequestDispatcher interface may be called at any time. The target servlet of the include method has access to all aspects of the request object, but its use of the response object is more limited.true
falsetechnologyactivetrue
Servlet:SPEC:192.183It can only write information to the ServletOutputStream or Writer of the response objecttrue
falsetechnologyactivetrue
Servlet:SPEC:192.283commit a response by writing content past the end of the response buffertrue
falsetechnologyactivetrue
Servlet:SPEC:192.383commit a response by explicitly calling the flushBuffer method of the ServletResponse interface.true
falsetechnologyactivetrue
Servlet:SPEC:192.483It cannot set headers or call any method that affects the headers of the response, with the exception of the HttpServletRequest. getSession() and HttpServletRequest.getSession(boolean) methods. Any attempt to set the headers must be ignored, and any call to HttpServletRequest. getSession() or HttpServletRequest.getSession( boolean) that would require adding a Cookie response header must throw an IllegalStateException if the response has been committed.true
falsetechnologyactivetrue
Servlet:SPEC:7683.1Except for servlets obtained by using the getNamedDispatcher method, a servlet being used from within an include has access to the path by which it was invoked. The following request attributes are set:true
falsetechnologyactivetrue
Servlet:SPEC:76.183.1'javax.servlet.include.request_uri' which is the URI by which it was invoked.true
falsetechnologyactivetrue
Servlet:SPEC:76.283.1'javax.servlet.include.context_path' which is the context path portion of the request URI by which it was invoked.true
falsetechnologyactivetrue
Servlet:SPEC:76.383.1'javax.servlet.include.servlet_path' the servlet-path portion of the request URI by which it was invoked.true
falsetechnologyactivetrue
Servlet:SPEC:76.483.1'javax.servlet.include.path_info' the path-info portion of the request URI by which it was invoked.true
falsetechnologyactivetrue
Servlet:SPEC:76.583.1'javax.servlet.include.query_string' the query string portion of the request URI by which it was invoked.true
falsetechnologyactivetrue
Servlet:SPEC:7784If output data exists in the response buffer that has not been committed, the content must be cleared before the target's service method is called.true
falsetechnologyactivetrue
Servlet:SPEC:7884The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher.true
falsetechnologyactivetrue
Servlet:SPEC:7984If the RequestDispatcher was obtained through getNamedDispatcher the path elements of the request object must reflect those of the original request.true
falsetechnologyactivefalse
Servlet:SPEC:8084Before the forward method of the RequestDispatcher interface returns, the response content must be sent and committed, and closed by the servlet container.true
falsetechnologyactivetrue
Servlet:SPEC:8184.1The request dispatching mechanism is responsible for aggregating query string parameters when forwarding or including requests.true
falsetechnologydeprecatedtrue
Servlet:SPEC:18084.2Except for servlets obtained by using the getNamedDispatcher method, a servlet that has been invoked by another servlet using the forward method of RequestDispatcher has access to the path of the original request. The values of these attributes must be equal to the return values of the HttpServletRequest methods getRequestURI, getContextPath, getServletPath, getPathInfo, getQueryString respectively, invoked on the request object passed to the first servlet object in the call chain that received the request from the client. These attributes are accessible from the forwarded servlet via the getAttribute method on the request object. Note that these attributes must always reflect the information in the original request even under the situation that multiple forwards and subsequent includes are called. If the forwarded servlet was obtained by using the getNamedDispatcher method, these attributes must not be set.true
falsetechnologyactivetrue
Servlet:SPEC:180.184.2javax.servlet.forward.request_uritrue
falsetechnologyactivetrue
Servlet:SPEC:180.284.2javax.servlet.forward.context_pathtrue
falsetechnologyactivetrue
Servlet:SPEC:180.384.2javax.servlet.forward.servlet_pathtrue
falsetechnologyactivetrue
Servlet:SPEC:180.484.2javax.servlet.forward.path_infotrue
falsetechnologyactivetrue
Servlet:SPEC:180.584.2javax.servlet.forward.query_stringtrue
falsetechnologyactivetrue
Servlet:SPEC:18184.2If the forwarded servlet was obtained by using the getNamedDispatcher method, these attributes must not be set.true
falsetechnologyactivetrue
Servlet:SPEC:181.184.2javax.servlet.forward.request_uritrue
falsetechnologyactivetrue
Servlet:SPEC:181.284.2javax.servlet.forward.context_pathtrue
falsetechnologyactivetrue
Servlet:SPEC:181.384.2javax.servlet.forward.servlet_pathtrue
falsetechnologyactivetrue
Servlet:SPEC:181.484.2javax.servlet.forward.path_infotrue
falsetechnologyactivetrue
Servlet:SPEC:181.584.2javax.servlet.forward.query_stringtrue
falsetechnologyactivetrue
Servlet:SPEC:8285If the servlet that is the target of a request dispatcher throws a runtime exception or a checked exception of type ServletException or IOException, it should be propagated to the calling servlet.true
falsetechnologyactivetrue
Servlet:SPEC:8385All other exceptions (not a runtime, ServletException, or IOException) should be wrapped as ServletExceptions with the root cause the original exception before propagation.true
falsetechnologyactivetrue
Servlet:SPEC:8491An instance of a web application, by default, must run on one VM at any one time.true
falsetechnologyactivefalse
Servlet:SPEC:8591An application marked as distributable must obey a more restrictive set of rules than is required of a normal web application (the rules are set through out this list.)true
falsetechnologyactivefalse
Servlet:SPEC:8692The servlet container must enforce a one to one correspondence between a web application and a ServletContext. A ServletContext object provides a servlet with its view of the application.true
falsetechnologyactivefalse
Servlet:SPEC:8795Since the context path of an application determines the URL namespace of the context of the web application, web containers must reject web application defining a context path could cause potential conflicts in this URL namespace.true
falsetechnologyactivefalse
Servlet:SPEC:8895Since request are matched to resources case sensitively, this determination of potential context path namespace conflicts must be performed case sensitively as well.true
falsetechnologyactivefalse
Servlet:SPEC:8995The WEB-INF node (or directory) of a web application is not part of the public document tree of the application. Any requests to access the resources in /WEB-INF directory must be returned with a SC_NOT_FOUND(404) response.true
falsetechnologyactivetrue
Servlet:SPEC:9095The contents of /WEB-INF are visible to Servlets through the use of ServletContext.getResource or ServletContext.getSourceAsStream.true
falsetechnologyactivetrue
Servlet:SPEC:9195The web applcation classloader must load classes from the WEB-INF/ classes directory first, and then from the library JARs in the WEB-INF directory.true
falsetechnologyactivetrue
Servlet:SPEC:9296When web applications are packaged in a WAR file (Web ARchive file), a META-INF directory will be present which contains information useful to Java Archive tools.true
falsetechnologyactivetrue
Servlet:SPEC:92.196Any requests to the META-INF directory of a packaged web application will be returned with a SC_NOT_FOUND(404) response.true
falsetechnologyactivetrue
Servlet:SPEC:92.296The content of the META-INF directory of a packaged web application is accessible to servlets using the getResource and getResourceAsStream methods of the ServletContext.true
falsetechnologyactivetrue
Servlet:SPEC:9397.1Java EE technology-compliant containers are required to provide a mechanism by which a deployer can learn what JAR files containing resources and code are available for the Web application.true
truetechnologyactivefalse
Servlet:SPEC:9797.1Containers should provide a convenient procedure for editing and configuring library files or extensions.false
truetechnologyactivefalse
Servlet:SPEC:9497.1During deployment of the Web application, the Web container must make the correct versions of the extensions available to the application following the rules defined by the Optional Package Versioning mechanism (http://java.sun.com/j2se/1.4/docs/guide/extensions/).true
falsetechnologyactivefalse
Servlet:SPEC:9597.1Web containers must also be able to recognize declared dependencies expressed in the manifest entry of any of the library JARs under the WEB-INF/lib entry in a WAR.true
falsetechnologyactivefalse
Servlet:SPEC:9697.1If a web container is not able to satisfy the dependencies declared via manifest files, it should reject the application with an informative error message.false
falsetechnologyactivefalse
Servlet:SPEC:9897.2The classloader that a container uses to load a servlet in a WAR must allow the developer to load any resources contained in library JARs within the WAR following normal J2SE semantics using getResource.true
falsetechnologyactivetrue
Servlet:SPEC:9997.2As described in the J2SE license agreement, servlet containers that are not part of a Java EE product should not allow the application to override J2SE platform classes, such as those in the java.* and javax.* namespaces, that J2SE does not allow to be modified.true
falsetechnologyactivetrue
Servlet:SPEC:99.197.2Also, servlet containers that are part of a Java EE product should not allow the application to override J2SE or Java EE platform classes, such as those in the java.* and javax.* namespaces, that either J2SE or Java EE do not allow to be modified.true
falsetechnologyactivetrue
Servlet:SPEC:99.297.2The class loader that a container uses to load a servlet in a WAR must allow the developer to load any resources contained in library JARs within the WAR following normal J2SE semantics using getResource.true
falsetechnologyactivetrue
Servlet:SPEC:99.397.2It is recommended also that the application class loader be implemented so that classes and resources packaged within the WAR are loaded in preference to classes and resources residing in container-wide library JARs.true
falsetechnologyactivetrue
Servlet:SPEC:10097.2It is recommended that the loader not allow servlets in the WAR access to the web container's implementation classes.false
falsetechnologyactivefalse
Servlet:SPEC:10197.2It is recommended also that the application classloader be implemented so that classes and resources packaged within the WAR are loaded in preference to classes and resources residing in container-wide library JARs.false
falsetechnologyactivefalse
Servlet:SPEC:10298A server should be able to replace an application with a new version without restarting the container. When an application is replaced, the container should provide a robust method for preserving session data within that application.false
truetechnologyactivefalse
Servlet:SPEC:10399.1A web application must be able to specify that when errors occur other resources in the application are used to provide the content body of the error response.true
falsetechnologyactivetrue
Servlet:SPEC:10499.1If the location of the error handler is a servlet or JSP page, then:true
falsetechnologyactivetrue
Servlet:SPEC:104.199.1The original unwrapped request and response objects created by the container are passed to the servlet or JSP page.true
falsetechnologyactivetrue
Servlet:SPEC:104.299.1The response setStatus method is disabled and ignored if called.true
falsetechnologyremovedtrue
Servlet:SPEC:104.399.1The request path and attributes are set as if a RequestDispatcher.forward to the error resource has been performed.true
falsetechnologyactivetrue
Servlet:SPEC:104.3.199.1The request attribute 'javax.servlet.error.status_code' of type 'java.lang.Integer' will be set containing the HTTP status code of the error condition.true
falsetechnologyactivetrue
Servlet:SPEC:104.3.299.1The request attribute 'javax.servlet.error.exception_type' of type 'java.lang.Class' will be set if the error page was invoked due to an uncaught exception.true
falsetechnologyactivetrue
Servlet:SPEC:104.3.399.1The request attribute 'javax.servlet.error.message' of type 'java.lang.String' will be set if the error page was invoked due to an uncaught exception.true
falsetechnologyactivetrue
Servlet:SPEC:104.3.499.1The 'javax.servlet.error.exception' attribute of type 'java.lang.Throwable' will be set if the error page was invoked due to an uncaught exception.true
falsetechnologyactivetrue
Servlet:SPEC:104.3.599.1The 'javax.servlet.error.request_uri' attribute of type 'java.lang.String' will contain the URI of the offending resource.true
falsetechnologyactivetrue
Servlet:SPEC:104.3.699.1The 'javax.serlvet.error.servlet_name' attribute of type 'java.lang.String' will contain the logical name of the servlet in which the error occurred.true
falsetechnologyactivetrue
Servlet:SPEC:10599.2If the sendError method is called on the response, the container consults the list of error page declarations for the web application that use the status-code syntax and attempts a match. If there is a match, the container returns the resource as indicated by the location entry.true
falsetechnologyactivetrue
Servlet:SPEC:10699.2In the case where the container is matching error pages based on the exception-type element, a match results in the container returning the resource indicated in the location entry. The closest match in the class hierarchy wins.true
falsetechnologyactivetrue
Servlet:SPEC:10799.2If no error-page declaration containing an exception-type fits using the class-hierarchy match, and the exception throws is a ServletException or subclass thereof the container extraces the wrapped exception, as defined by the ServletException.getRootCause method and a second pass is made of the error page declarations, again attempting the match against the error page declearations, but using the wrapped exception.true
falsetechnologyactivetrue
Servlet:SPEC:10899.2Error-page declarations using the exception-type element in the deployment descriptor must be unique up to the class name of the exception type.true
falsetechnologyactivefalse
Servlet:SPEC:10999.2Error page declarations using the status-code elements must be unique in the deployment descriptor up to the status-code.true
falsetechnologyactivetrue
Servlet:SPEC:11099.2The error page mechanism does not intervene when errors occur when invoked using the RequestDispatcher or Filter.doFilter method. In this way, a filter or servlet using the RequestDispatcher has the opportunity to handle errors generated.true
falsetechnologyactivetrue
Servlet:SPEC:11199.2If a servlet generates an error that is not handled by the error page mechanism as described above, the container must ensure to send a response with status 500.true
falsetechnologyactivetrue
Servlet:SPEC:11299.2The default servlet and container will use the sendError method to send 4xx and 5xx responses so that the error mechanism may be invoked.true
falsetechnologyactivetrue
Servlet:SPEC:11399.2The default servlet and container will use the setStatus method to send 2xx and 3xx responses to bypass the error mechanismtrue
falsetechnologyactivetrue
Servlet:SPEC:114910If a web container receives a valid partial request, the web container must examine the welcome files list, which is an ordered list of partial URLs, with no leading or trailing slash, and append the each welcome file to the partial URI in the order it was defined to find a match. The web container must send the request to the first resource in the WAR that matches.true
falsetechnologyactivetrue
Servlet:SPEC:115910If no welcome file match is found, the container may handle the request as it sees fit.true
truetechnologyactivefalse
Servlet:SPEC:116911Java EE compliant servlet containers are required to support the following elements of the web deployment descriptor for specifying information allowing a servlet to obtain references to resources and enterprise beans. The deployment elements that contain this information are:true
falseplatformactivetrue
Servlet:SPEC:116.1911env-entrytrue
falseplatformactivetrue
Servlet:SPEC:116.2911ejb-reftrue
falseplatformactivetrue
Servlet:SPEC:116.3911ejb-local-reftrue
falseplatformactivetrue
Servlet:SPEC:116.4911resource-env-reftrue
falseplatformactivetrue
Servlet:SPEC:116.5911resource-reftrue
falseplatformactivetrue
Servlet:SPEC:117911If the standalone container does not support these lookup facilities, the container should provide a warning upon deployment of an application that has dependencies on such resources.false
falsetechnologyactivefalse
Servlet:SPEC:118911Servlet containers that are part of a Java EE technology compliant implementation must support lookups of such objects and calls made to those objects when performed on a thread managed by the servlet container.true
falseplatformactivetrue
Servlet:SPEC:119911Such servlet containers should support this lookup behavior when performed on threads created by the developer, but are not required to do so.false
falsetechnologyactivefalse
Servlet:SPEC:120103.1Each listener class specified in the deployment descriptor must have a public constructor taking no arguments.true
falsetechnologyactivefalse
Servlet:SPEC:121103.2Listeners will be invoked in the order that they are defined in the deployment descriptor.true
falsetechnologyremovedtrue
Servlet:SPEC:122103.3The web container creates an instance of each listener class and registers it for event notifications prior to the processing of the first request by the applicationtrue
falsetechnologyactivefalse
Servlet:SPEC:123103.3The web container registers the listener instances according to the interfaces they implement and the order in which they appear in the deployment descriptor.true
falsetechnologyactivetrue
Servlet:SPEC:124103.3During web application execution listeners are invoked in the order of their registration.true
falsetechnologyactivetrue
Servlet:SPEC:125103.4On application shutdown, listeners are notified in reverse order to their declarations with notifications to session listeners preceeding notifications to context listeners. Session listeners must be notified of session invalidations prior to context listeners being notified of application shutdown.true
falsetechnologyactivefalse
Servlet:SPEC:126105The container is required to complete instantiation of the listener classes in a web application prior to the start of execution of the first request into the application.true
falsetechnologyactivetrue
Servlet:SPEC:127105The container must maintain a reference to each listener instance until the last request is serviced for the web application.true
falsetechnologyactivefalse
Servlet:SPEC:128106The container must allow unhandled exceptions to be handled by the error page mechanism described in Section SRV.9.9, "Error Handling". If there is no error page specified for those exceptions, the container must ensure to send a response back with status 500. In this case no more listeners under that event are called.true
falsetechnologyactivetrue
Servlet:SPEC:129106In cases where it is not possible to handle an Exception in application code (ex. an Exception occuring during initialization of a ContextListener), the container may response to all subsequent requests with an HTTP status code of 500 to indicate application error.false
falsetechnologyactivefalse
Servlet:SPEC:130107In distributed web containers, HttpSession instances are scoped to the particular VM services session requests, and the ServletContext object is scoped to the web container's VM.false
falsetechnologyactivefalse
Servlet:SPEC:131107Distributed containers are not required to propogate either servlet context events or HttpSession events to other VMs.false
falsetechnologyactivefalse
Servlet:SPEC:132107Listener class instances are scoped to one per deployment descriptor declaration per Java virtual machine.true
falsetechnologyactivefalse
Servlet:SPEC:133111Upon receipt of a client request, the web container determines the web application to which to forward it. The web application selected must have the longest context path that matches the start of the request URL. The matched port of the URL is the context path when mapping to servlets.true
falsetechnologyactivetrue
Servlet:SPEC:134111The web container next must locate the servlet within the matched context to process the request using the following algorithm (NOTE: The path used for mapping to a servlet is the request URL from the request object minus the context path and the path parameters. The URL path mapping rules below are used in order. The first successful match is used with no further matches attempted):true
falsetechnologyactivetrue
Servlet:SPEC:134.1111The container will try to find an exact match of the path of the request to the path of the servlet. A successful match selects the servlet.true
falsetechnologyactivetrue
Servlet:SPEC:134.2111The container will recursively try to match the longest path-prefix: This is done by stepping down the path tree a directory at a time, using the '/' character as a path separator. The longest match determines the servlet selected.true
falsetechnologyactivetrue
Servlet:SPEC:134.3111If the last segment in the URL path contains an extension (e.g. .jsp), the servlet container will try to match a servlet that handles requests for the extension. An extension is defined as the part of the last segment after the last '.' character.true
falsetechnologyactivetrue
Servlet:SPEC:134.4111If neither the previous rules result in a servlet match, the container will attempt to serve content appropriate for the resource requested. If a "default" servlet is defined for the applications, it will be used.true
falsetechnologyactivetrue
Servlet:SPEC:134.5111The container must use case-sensitive string comparisons for matching.true
falsetechnologyactivetrue
Servlet:SPEC:135112.1If the container has an internal JSP container, the *.jsp extension is mapped to it, allowing JSP pages to be executed on demand.true
falsetechnologyactivefalse
Servlet:SPEC:136112.1A servlet container is allowed to make other implicit mappings as long as explicit mappings take precedence.false
falsetechnologyactivefalse
Servlet:SPEC:137122Declarative security constraints are not applied when a servlet uses the RequestDispatcher to invoke a static resource or servlet using a forward or an include.true
falseplatformactivetrue
Servlet:SPEC:138123The isUserInRole method uses the security-role-ref element when determining the return value of the call. If no security-role-ref element matching a security-role element has been declared, the container must default to checking the role-name element against the list of security-role elements for the web applications.true
falseplatformactivetrue
Servlet:SPEC:139124A servlet container enforces declarative or programmatic security for the principal associated with an incoming request based on the security attributes of the principal. This may happen in either of the following ways:true
falseplatformactivetrue
Servlet:SPEC:139.1124A deployer has mapped a security role to a user group in the operational environment. The user group to which the calling principal belongs is retrieved from its security attributes. The principal is in the security role only if the principals user group matches the user group to which the security role has been mapped by the deployer.true
falseplatformactivetrue
Servlet:SPEC:139.2124A deployer has mapped a security role to a principal name in a security policy domain. In this case, the principal name of the calling principal is retrieved from its security attributes. The principal is in the security role only if the principal name is the same as a principal name to which the security role was mapped.true
falseplatformactivetrue
Servlet:SPEC:140125.1HTTP Basic Authentication is required to be supported by servlet containers.true
falseplatformactivetrue
Servlet:SPEC:141125.2HTTP Digest Authentication is not a required authentication mechanism for servlet containers.false
falseplatformactivefalse
Servlet:SPEC:142125.3Form based authentication allows the customization of the login screen.true
falseplatformactivefalse
Servlet:SPEC:142.1125.3The login form used for form based authentication must contain fields for entering a username and a password. These fields must be j_username and j_password, respectively.true
falseplatformactivetrue
Servlet:SPEC:142.2125.3The login form used by the container can be specified within the deployment descriptor.true
falseplatformactivetrue
Servlet:SPEC:142.3125.3An error page can be specified in the deployment descriptor which will be returned on failed form based authentication attempts.true
falseplatformactivetrue
Servlet:SPEC:142.4125.3The authentication process for form based login:true
falseplatformactivefalse
Servlet:SPEC:142.4.1125.3The login form associated with the security constraint is sent to the client and the URL path triggering the authentication is stored by the container.true
falseplatformactivetrue
Servlet:SPEC:142.4.2125.3The container attempts to authenticate the user using the information from the form.true
falseplatformactivetrue
Servlet:SPEC:142.4.3125.3If authentication fails, the error page is returned using either a forward or a redirect, and the status code of the response is set to 200.true
falseplatformactivetrue
Servlet:SPEC:142.4.4123.1If authentication succeeds, the authenticated user's principal is check to see if it is in an authroized role for accessing the resource.true
falseplatformactivetrue
Servlet:SPEC:142.4.5123.1If the user is authorized, the client is redirected to the resource using the stored URL path.true
falseplatformactivetrue
Servlet:SPEC:142.5125.3.1The action of the login form must always be j_security_check.true
falseplatformactivetrue
Servlet:SPEC:142.6125.3.1If the form based login is invoked because of an HTTP request, the original request parameters must be preserved by the container for use if on successful authentication, it redirects the call to the requested resource.true
falseplatformactivetrue
Servlet:SPEC:142.7125.3.1If the user is authenticated using form login and has created an HTTP session, the timeout or invalidation of that session leads to the user being logged out in the sense that subsequent requests must cause the user to be re-authenticated.true
falseplatformactivetrue
Servlet:SPEC:143125.4Servlet containers that are not Java EE technology compliant are not required to support HTTPS protocol/authentication.false
falseplatformactivefalse
Servlet:SPEC:144126Servlet containers are required to track authentication information at the container level rather than at the web application level.true
falseplatformactivefalse
Servlet:SPEC:145127A security identity, or principal, must always be provided for use in a call to an enterprise bean.true
trueplatformactivefalse
Servlet:SPEC:146127The default mode in calls to enterprise beans from web applications is for the security identity of a web user to be propagated to the EJB container.true
trueplatformactivefalse
Servlet:SPEC:147127If a container supports calls to EJB's containers are required to support access to web resources by clients that have not authenticated themselves to the container through the use of the run-as element of the deployment descriptor. The container will use this identity when propagating the call from the web layer to the EJB layer.true
falseplatformactivefalse
Servlet:SPEC:147.1127The security role propagated through the run-as element must be a security role defined in the deployment descriptor of the web application.true
trueplatformactivefalse
Servlet:SPEC:148127Web containers running as part of a Java EE platform, the use of run-as elements must be supported both for calls to EJB components within the same Java EE application, and for calls to EJB components deployed in other Java EE applications.true
falseplatformactivefalse
Servlet:SPEC:149128If a request is issued against a set of protected resources the user who made the request must be a member of at least one of the named roles to be permitted to perform the contrained requests.true
falseplatformactivetrue
Servlet:SPEC:150128The special role name "*" is a shorthand for all role names defined in the deployment descriptor.true
falseplatformactivetrue
Servlet:SPEC:151128An auth constraint that names no roles indicates that access ot the contrained resources must not be permitted under any circumstances.true
falseplatformactivetrue
Servlet:SPEC:152128A user data constraint establishes a requirement that the constrained requests be received over a protected transport layer connection.true
falseplatformactivefalse
Servlet:SPEC:152.1128A transport guarantee of INTEGRAL is used to establish a requirement for content integrity.true
falseplatformactivefalse
Servlet:SPEC:152.2128A transport guarantee of CONFIDENTIAL is used to establish a requirement for confidentiality.true
falseplatformactivefalse
Servlet:SPEC:152.3128A transport guarantee of NONE indicates that the container must accept the constrained requests when received on any connection including unprotected ones.true
falseplatformactivetrue
Servlet:SPEC:153128If no auth-constraing applies to a request, the container must accept the request without requiring user authentication.true
falseplatformactivetrue
Servlet:SPEC:154128.1When a url-pattern and http-method pair occurs in multiple security constraints, the applicable constraints (on the pattern and the method) are defined by combining the individual constraints.true
falseplatformactivetrue
Servlet:SPEC:154.1128.1A security constraint that does not contain an auth constraint shall combine with auth constraints that name or imply roles to allow unauthenticated access.true
falseplatformactivetrue
Servlet:SPEC:154.2128.1The special case of an auth constraint that names no roles shall combine with any other constraints to override their affects and cause access to be precluded.true
falseplatformactivetrue
Servlet:SPEC:154.3128.1The combination of user-data constraints that apply to a common usr-pattern and http-method shall yield the union of connection types accepted by the individual constraints as acceptable connection types.true
falseplatformactivefalse
Servlet:SPEC:154.4128.1A security constraint that does not contain a user-data constraint shall combine with other user-data constraints to cause the unprotected connection type to be an accepted connection type.true
falseplatformactivetrue
Servlet:SPEC:155128.3When a Servlet container receives a request, it shall use the url pattern matching algorithm to select the constraints, if any, defined that is the best match to the request URItrue
falseplatformactivetrue
Servlet:SPEC:156128.3If no security contraint can be matched between the defined contraints and the request URI, the container will accept the request.true
falseplatformactivetrue
Servlet:SPEC:157128.3If a constraint match is found based on the request URI, the container shall determine if the HTTP method of the request is constrained, if it's not, then the constrained request will be accepted.true
falseplatformactivetrue
Servlet:SPEC:158128.3If the HTTP method is contrained, then the method used for the request must match what is acceptable for the constraint in order for the request to be accepted.true
falseplatformactivetrue
Servlet:SPEC:159128.3If the characteristics of the connection on which the request was received must satisfy at least one of the supported connection types defined by the constraints. If this rule is not satisfied, the container shall reject the request and redirect it to the HTTPS port.true
falseplatformactivetrue
Servlet:SPEC:159.1128.3As an optimization, a container should reject the connection request if it doesn't match the constrained connection types and return a 403 (SC_FORBIDDEN) status code if it knows that access will ultimately be precluded (by an auth constraint naming with no roles).false
falseplatformactivefalse
Servlet:SPEC:160128.3If a constraint naming defined no roles, any attempted requests will result in a 403 (SC_FORBIDDEN).true
falseplatformactivetrue
Servlet:SPEC:161128.3If access is restricted to permitted roles and the request has not been authenticated, the request shall be rejected as unauthorized and a 401 (SC_UNAUTHORIZED) status code shall be returned to cause authentication.true
falseplatformactivetrue
Servlet:SPEC:162128.3If access is restricted to permitted roles and the authentication identity of the request is not a member of any of these roles, the request shall be rejected as forbidden and a 403 (SC_FORBIDDEN) status code shall be returned to the user.true
falseplatformactivetrue
Servlet:SPEC:1631210If a developer creates a session while a user is not authenticated, and the container then authenticates the user, the session visible to developer code after login must be the same session object that was created prior to login occurring so that there is no loss of session information.true
falseplatformactivetrue
Servlet:SPEC:1641210.2For all authentication methods in both non-single signon and single signon containers, logout is caused by one of the following situations:true
falseplatformremovedtrue
Servlet:SPEC:164.11210.2Invalidation of the session. If this occurs, getUserPrincipal will return a null value.true
falseplatformremovedtrue
Servlet:SPEC:164.21210.2Session timeouts. If this occurs, getUserPrincipal will return a null value.true
falseplatformremovedtrue
Servlet:SPEC:164.31210.2An explicit call to HttpSession.invalidateAll. If this occurs, getUserPrincipal will return a null value.true
falseplatformremovedtrue
Servlet:SPEC:164.41210.2An explicit call to HttpSession.logout.If this occurs, getUserPrincipal will return a null value.true
falseplatformremovedtrue
Servlet:SPEC:1651210.2For non-single signon containers, a session invalidating has no effect on login state or session state in other web applications.true
falseplatformactivefalse
Servlet:SPEC:1661210.2For single signon containers, logout causes all other active sessions associated with the current user to be invalidated.true
falseplatformactivefalse
Servlet:SPEC:1671210.2Invalidation or timeout of an individual session causes the termination of that session, but does not cause a logout unless it is the last session for this user, which means that a container is allowed to start a new session for one or more web applications without re-authenticating the user.false
falseplatformremovedfalse
Servlet:SPEC:168132Servlet 2.5 web containers may use schema to validate the structure of a deployment descriptor.false
falsetechnologyactivefalse
Servlet:SPEC:169131The deployment-extension element provides the ability to inject application or framework specific configuration information directly into the deployment descriptor.true
truetechnologyremovedfalse
Servlet:SPEC:169.1131If a container uses schema to validate a deployment descriptor, any new content injected into deployment-extension elements as described below will not be validated by the web container.false
falsetechnologyremovedfalse
Servlet:SPEC:169.2131Deployment extensions are only valid within the top level web-app element or within servlet elements.true
falsetechnologyremovedfalse
Servlet:SPEC:169.3131.1Servlet 2.5 containers are required to raise an exception if they do not recognize an extension within a deployment descriptor where the mustUnderstand attribute is 'true'.true
falsetechnologyremovedfalse
Servlet:SPEC:169.4131.1Servlet 2.5 containers are not required to attempt to process extended deployment information where the nustUnderstand attribute is set to 'false'.false
falsetechnologyremovedfalse
Servlet:SPEC:170131Security information which may appear in the deployment descriptor is not required to be supported unless the servlet container is part of an implementation of the Java EE specification.true
falseplatformactivetrue
Servlet:SPEC:193144.1The following additional elements exist in the Web application deployment descriptor to meet the requirements of Web containers that are JSP pages enabledor part of a Java EE application server. They are not required to be supported by containers wishing to support only the servlet specification:true
falseplatformactivetrue
Servlet:SPEC:171144.1jsp-configtrue
falseplatformactivetrue
Servlet:SPEC:172144.1Syntax for looking up JNDI objects(env-entry, ejb-ref, ejb-local-ref, resource-ref, resource-env-ref)true
falseplatformactivetrue
Servlet:SPEC:193.1144.1Syntax for specifying the message destination (message-destination, message- destination-ref)true
falseplatformactivetrue
Servlet:SPEC:193.2144.1Reference to a Web service (service-ref)true
falseplatformactivetrue
Servlet:SPEC:174132Web containers must remove all leading and trailing whitespace, which is defined as "S(whitespace)" in XML 1.0 (http://www.w3.org/TR/2000/WD-xml- 2e-20000814), for the element content of the text nodes of a deployment descriptor.true
falsetechnologyremovedtrue
Servlet:SPEC:175132The containers and tools that are part of Java EE technology-compliant implementation are required to validate deployment descriptor against the XML schema for structural correctness.true
falsetechnologyactivetrue
Servlet:SPEC:176132It is recommended that Web containers and tools that manipulate Web applications provide a level of semantic checking. For example, it should be checked that a role referenced in a security constraint has the same name as one of the security roles defined in the deployment descriptor.false
falsetechnologyactivetrue
Servlet:SPEC:10176132The sub elements under web-app can be in an arbitrary order.true
falsetechnologyactivetrue
Servlet:SPEC:11276132The multiplicity of the elements distributable, session-config, welcome-file-list, jspconfig, login-config, and locale-encoding-mapping-list is "0 or more."true
falsetechnologyactivefalse
Servlet:SPEC:11276.1132Containers must inform the developer with a descriptive error message when the deployment descriptor contains more than one element of session-config, jsp-config, and login-config.true
falsetechnologyactivefalse
Servlet:SPEC:11276.2133The deployment descriptor instance file must not contain multiple elements of session-config, jsp-config, and login-config.true
falsetechnologyactivefalse
Servlet:SPEC:11276.3132The container must concatenate the items in welcome-file-list and localeencoding-mapping-list when there are multiple occurrences.true
falsetechnologyactivetrue
Servlet:SPEC:11276.4132The multiple occurrence of distributable must be treated exactly in the same way as the single occurrence of distributable.true
falsetechnologyactivetrue
Servlet:SPEC:11276132URI paths specified in the deployment descriptor are assumed to be in URLdecoded form.true
falsetechnologyactivefalse
Servlet:SPEC:11276.1132The containers must inform the developer with a descriptive error message when URL contains CR(#xD) or LF(#xA).true
falsetechnologyactivefalse
Servlet:SPEC:11276.2132The containers must preserve all other characters including whitespace in URL.true
falsetechnologyactivetrue
Servlet:SPEC:177132Containers must attempt to canonicalize paths in present in the deployment descriptor.false
falsetechnologyactivetrue
Servlet:SPEC:178133Paths beginning or resolving to paths that begin with ".." are not valid paths in the deployment descriptor.true
falsetechnologyactivefalse
Servlet:SPEC:179133Elements whose valus is an enumerated type must be treated in a case sensitive manner.true
falsetechnologyactivefalse
Servlet:SPEC:182912When a web application is deployed into a container, the following steps must be performed, in this order, before the web application begins processing client requests. 1. Instantiate an instance of each event listener identified by a <listener> element in the deployment descriptor. 2. For instantiated listener instances that implement ServletContextListener, call the contextInitialized() method. 3. Instantiate an instance of each filter identified by a <filter> element in the deployment descriptor and call each filter instances init() method. 4. Instantiate an instance of each servlet identified by a <servlet> element that includes a <load-on-startup> element in the order defined by the load-onstartup element values, and call each servlet instances init() method. true
falsetechnologyactivetrue
Servlet:SPEC:18352The setHeader method sets a header with a given name and value. A previous header is replaced by the new header. Where a set of header values exist for the name, the values are cleared and replaced with the new value. true
falsetechnologyactivetrue
Servlet:SPEC:184142Java EE technology-compliant containers are required to provide a mechanism by which a deployer can learn about what jar file containing resources and code are available for the Web application.true
falseplatformactivefalse
Servlet:SPEC:185142Containers should provide a convenient procedure for editing and configuring library files or extensions.false
trueplatformactivefalse
Servlet:SPEC:186142.1Servlet containers that are part of a Java EE product should not allow the application to override Java SE or Java EE platform classes, such as those in the java.* and javax.* namespaces, that either Java SE or Java EE do not allow to be modified.true
falseplatformactivetrue
Servlet:SPEC:187143.1A security identity, or principal, must always be provided for use in a call to an enterprise bean.true
trueplatformactivetrue
Servlet:SPEC:188143.1The default mode in calls to enterprise beans from web applications is for the security identity of a web user to be propagated to the EJB container.true
trueplatformactivetrue
Servlet:SPEC:189143.1web containers are required to allow web users that are not known to the web container or to the EJB container to make calls:true
falseplatformactivetrue
Servlet:SPEC:189.1143.1Web containers are required to support access to web resources by clients that have not authenticated themselves to the container. This is the common mode of access to web resources on the Internet.true
trueplatformactivetrue
Servlet:SPEC:189.2143.1Application code may be the sole processor of signon and customization of data based on caller identity.true
trueplatformactivefalse
Servlet:SPEC:190143.1a web application deployment descriptor may specify a run-as element. When it is specified, the container must propagate the security identity for any call from a servlet to the EJB layer in terms of the security role name defined in the run-as element. The security role name must be one of the security role names defined for the web application.true
falseplatformactivetrue
Servlet:SPEC:191143.1Web containers running as part of a Java EE platform, the use of run-as elements must be supported both for calls to EJB components within the same Java EE application, and for calls to EJB components deployed in other Java EE applications.true
falseplatformactivetrue
Servlet:SPEC:194144.2Web containers may choose to support running components written to implement a Web service endpoint as defined by the JAX-RPC and/or JAX-WS specifications.false
falsetechnologyactivetrue
Servlet:SPEC:173144.2Web containers embedded in a JavaEE conformant implementation are required to support JAX-RPC and JAX-WS web service components.true
falseplatformactivetrue
Servlet:SPEC:173.1144.2JSR-109 [http://jcp.org/jsr/detail/109.jsp] defines the model for packaging a Web service interface with its associated WSDL description and associated classes.true
falseplatformactivetrue
Servlet:SPEC:173.2144.2JSR-109 defines a mechanism for JAX-WS and JAX-RPC enabled Web containers to link to a component that implements this Web service.true
falseplatformactivetrue
Servlet:SPEC:173.3144.2JAX-WS and JAX-RPC enabled Web containers must support the developer in using the Web deployment descriptor to define the following information for the endpoint implementation component, using the same syntax as for HTTP Servlet components using the servlet element. The child elements are are used to specify endpoint information in the following way: true
falseplatformactivetrue
Servlet:SPEC:173.3.1144.2the servlet-name element defines a logical name which may be used to locate this endpoint description among the other Web components in the WARtrue
falseplatformactivetrue
Servlet:SPEC:173.3.2144.2the servlet-class element provides the fully qualified Java class name of this endpoint implementationtrue
falseplatformactivetrue
Servlet:SPEC:173.3.3144.2the description element(s) may be used to describe the component and may be displayed in a toolfalse
falseplatformactivetrue
Servlet:SPEC:173.3.4144.2the load-on-startup element specifies the order in which the component is initialized relative to other Web components in the Web containertrue
falseplatformactivetrue
Servlet:SPEC:173.3.5144.2the security-role-ref element may be used to test whether the authenticated user is in a logical security rolefalse
falseplatformactivetrue
Servlet:SPEC:173.3.6144.2the run-as element may be used to override the identity propagated to EJBs called by this componenttrue
falseplatformactivetrue
Servlet:SPEC:173.4144.2Any servlet initialization parameters defined by the developer for this Web component may be ignored by the container.false
falseplatformactivetrue
Servlet:SPEC:173.5144.2JAX-WS and JAXRPC enabled Web component inherits the traditional Web component mechanisms for defining the following information:true
falseplatformactivetrue
Servlet:SPEC:173.5.1144.2mapping of the component to the Web container s URL namespace using the servlet mapping techniquetrue
falseplatformactivetrue
Servlet:SPEC:173.5.2144.2authorization constraints on Web components using security constraintstrue
falseplatformactivetrue
Servlet:SPEC:173.5.3144.2the ability to use servlet filters to provide low-level byte stream support for manipulating JAX-WS and/or JAX-RPC messages using the filter mapping techniquetrue
falseplatformactivetrue
Servlet:SPEC:173.5.4144.2the timeout characteristics of any HTTP sessions that are associated with the componenttrue
falseplatformactivetrue
Servlet:SPEC:173.5.5144.2links to Java EE objects stored in the JNDI namespacetrue
falseplatformactivetrue
Servlet:SPEC:195145Annotations must be supported on the following container managed classes that implement the following interfaces and are declared in the web application deployment descriptor.true
falseplatformactivetrue
Servlet:SPEC:195.1145javax.servlet.Servlettrue
falseplatformactivetrue
Servlet:SPEC:195.2145javax.servlet.Filtertrue
falseplatformactivetrue
Servlet:SPEC:195.3145javax.servlet.ServletContextListenertrue
falseplatformactivetrue
Servlet:SPEC:195.4145javax.servlet.ServletContextAttributeListenertrue
falseplatformactivetrue
Servlet:SPEC:195.5145javax.servlet.ServletRequestListenertrue
falseplatformactivetrue
Servlet:SPEC:195.6145javax.servlet.ServletRequestAttributeListenertrue
falseplatformactivetrue
Servlet:SPEC:195.7145javax.servlet.http.HttpSessionListenertrue
falseplatformactivetrue
Servlet:SPEC:195.8145javax.servlet.http.HttpSessionAttributeListenertrue
falseplatformactivetrue
Servlet:SPEC:196145References must be injected prior to any lifecycle methods being called and the component instance being made available the the application.true
falseplatformactivetrue
Servlet:SPEC:197145In a web application, classes using resource injection will have their annotations processed only if they are located in the WEB-INF/classes directory, or if they are packaged in a jar file located in WEB-INF/lib.true
falseplatformactivetrue
Servlet:SPEC:198145The web application deployment descriptor contains a new full attribute on the web-app element. The full attribute defines whether the web descriptor is complete, or whether the class files of the jar file should be examined for annotations that specify deployment information. If full is set to "true", the deployment tool must ignore any Servlet annotations present in the class files of the application. If the full attribute is not specified or is set to "false", the deployment tool must examine the class files of the application for annotations, as previously specified.true
falseplatformactivetrue
Servlet:SPEC:199145Following are the annotations that are required by a Java EE technology compliant web container.true
falseplatformactivetrue
Servlet:SPEC:199.1145.4@Resource annotation is used to declare a reference to a resource such as a data source, Java Messaging Service (JMS) destination, or environment entry. This annotation is equivalent to declaring a resource-ref, message-destinationref or env-ref, or resource-env-ref element in the deployment descriptor. Resource annotation is specified on a class, method or field. The container is responsible injecting references to resources declared by the Resource annotation and mapping it to the proper JNDI resources.true
falseplatformactivetrue
Servlet:SPEC:199.2145.11@Resources annotation acts as a container for multiple Resource annotations because the Java MetaData specification does not allow for multiple annotations with the same name.true
falseplatformactivetrue
Servlet:SPEC:199.3145.3InjectionComplete annotation is declared on a method which will be called after the resources injections have been completed and before any lifecycle methods on a component are called. This allows application code to do post create processing if necessary.true
falseplatformactivetrue
Servlet:SPEC:199.4145.2Enterprise JavaBeansTM 3.0 (EJB) components may referenced from a web component using the @EJB annotation. @EJB annotation provides the equivalent functionality of declaring the ejb-ref or ejb-local-ref elements in the deployment descriptor. Fields that have a corresponding @EJB annotation are injected with the a reference to the corresponding EJB component.true
falseplatformactivetrue
Servlet:SPEC:199.5145.13@WebServiceRef annotation provides a reference to a web service in a web component in same way as a resource-ref element would in the deployment descriptor.true
falseplatformactivetrue
Servlet:SPEC:199.6145.5This annotation is used to define the security roles that comprise the security model of the application. This annotation is specified on a class, and it typically would be used to define roles that could be tested (i.e., by calling isUserInRole) from within the methods of the annotated class. It could also be used to declare application roles that are not implicitly declared as the result of their use in a @RolesReferenced annotation on the class implementing the javax.servlet. Servlet interface or a subclass thereof.true
falseplatformactivetrue
Servlet:SPEC:199.7145.12The @RunAs annotation is equivalent to the run-as element in the deployment descriptor. The @RunAs annotation may only be defined in classes implementing the javax.servlet.Servlet interface or a subclass thereof.true
falseplatformactivetrue
Servlet:SPEC:200152.24Interface SingleThreadModel Ensures that servlets handle only one request at a time. This interface has no methods. If a servlet implements this interface, you are guaranteed that no two threads will execute concurrently in the servlet?s service method. The servlet container can make this guarantee by synchronizing access to a single instance of the servlet, or by maintaining a pool of servlet instances and dispatching each new request to a free servlet. Note that SingleThreadModel does not solve all thread safety issues. For example, session attributes and static variables can still be accessed by multiple requests on multiple threads at the same time, even when SingleThreadModel servlets are used. It is recommended that a developer take other means to resolve those issues instead of implementing this interface, such as avoiding the usage of an instance variable or synchronizing the block of the code accessing those resources. This interface is deprecated in Servlet API version 2.4. true
falsetechnologydeprecatedtrue
Servlet:SPEC:201913A web application is NOT required to contain a web.xml if it does NOT contain any Servlet, Filter, or Listener components. In other words an application containing only static files or JSP pages does not require a web.xml to be present. true
falseplatformactivetrue