code_junkie

Protecting internal view layer template pages in servlet applications

Nov 11th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <!-- Prevent direct access to JSPs. -->
  2. <security-constraint>
  3. <web-resource-collection>
  4. <web-resource-name>JSP templates</web-resource-name>
  5. <url-pattern>*.jsp</url-pattern>
  6. </web-resource-collection>
  7. <auth-constraint/> <!-- i.e. nobody -->
  8. </security-constraint>
Add Comment
Please, Sign In to add comment