View RSS Feed

Servlet

Servlet tutorials.

  1. Explain declarative security for WEB applications

    by , 01-01-2012 at 04:03 PM
    Declarative security is implemented by the Servlet containers. Administration takes place via deployment descriptor web.xml file. Servlets & JSP pages along with the declarative security will become security aware code free. URLs could be protected via web.xml as it has been shown below:

    XML Code: This is a web.xml with the security tags
    <web-app>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>PrivateAndSensitive</web-resource-name>
    <url-pattern>/private/*</url-pattern>
    ...

    Updated 01-14-2012 at 05:52 PM by Servlet

    Categories
    Security