View RSS Feed

Recent Blogs Posts

  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
  2. Fetching parameters from web.xml

    by , 05-24-2011 at 01:30 PM (My Java Tips)
    The file named web.xml is part of your web applications. You may use it for different purpose. Sometimes you wish to define some parameters for your web application in it. Obviously, you need to use this in your application. I will briefly tell you how to do this.

    At first, let me give you an example. We have a web application that needs to send its id and license code to some authentication server before doing some business operation. The id and license code are static and you may ...

    Updated 05-24-2011 at 01:34 PM by Java Tip

    Categories
    JSP , Servlet , XML