Questions tagged [servlet-3.1]

A Servlet 3.1 (JSR-340) specification targeted to the Java EE 7 platform.

A Servlet 3.1 (JSR-340) specification targeted to the Java EE 7 platform. Servlet 3.1 was in Public Review in Janurary 2013. And it is in Proposed Final Draft now. Most of the new features are related to security. In this following, I will highlight features since Servlet 3.1 Public Review:

  • add new API javax.servlet.http.Part#getSubmittedFileName
  • add new API javax.servlet.ServletContext#getVirtualServerName This API allows a JASPIC module to be registered in a Servlet container in a portable way.

  • default deny semantic

Prior to Servlet 3.1, if the given HTTP methods are not covered by the given security constraint for given URL patterns, then the HTTP methods are not protected for the corresponding URL patterns. This may not be the desired behavior. A new element deny-uncovered-http-methods is added to web.xml so that the behavior of those HTTP methods for the given URL patterns can be configured easily.

  • authenticated role,

If the role name is not explicitly defined in web.xml, it is used to denote the role name of all authenticated users. The role name can be used in defining an security-constraint in web.xml and as argument of HttpServletRequest#isUSerInRole.

46 questions
0
votes
0 answers

i18n issue using servlet 3 and spring 3.2.3

Im working with spring 3.2.3, servlet 3 and maven 3.1, so i'm trying to use i18n, but for some dark reason i can't start my app saying: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: No message found under code…
1 2 3
4