Show TOC Start of Content Area

Procedure documentation Editing the Properties of a New Servlet/JSP  Locate the document in its SAP Library structure

Procedure

       1.      In your DLP project, choose the J2EE Components tab.

       2.      Select a Servlet/JSP. Set the general and security options.

       3.      Save your entries.

Setting General Properties

...

       1.      Click the General subtab.

       2.      You can modify the name of the Servlet/JSP in the Servlet Name field.

       3.      You can modify the fully qualified Servlet/JSP class name in the Servlet Class/Jsp File name field.

       4.      Specify the type of the entity:

·         If it is a servlet, choose the Servlet radio button.

·         If it is a JSP, choose the JSP radio button.

       5.      Check the Load on Startup combo box if the Servlet/JSP is to be loaded at the start of the Web application. If no value is specified, or if the specified value is not a positive integer, the container is free to load it at any time in the startup sequence.

       6.      Set the initial, mappings and additional properties.

Note

The servlet or the JSP must have been added as source files. For more information about how to do this, see Managing Files and Directories. If you do not add them, an error message will appear.

Caution

The mapping you use to add the servlets and JSPs must be the same as their names.

Setting Initial Properties

...

       1.      Click the Initial subtab.

       2.      Modify the name of the parameter in the Parameter Name field.

       3.      Modify the value of the parameter in the Parameter Value field. Each parameter can have only one value.

Note

Parameters are name-value pairs.

       4.      Enter a descriptive text in the Description field.

       5.      Use the Add, Modify and Remove buttons to add a new parameter, modify an existing parameter or remove a parameter from the Parameters list.

       6.      Use the Clear button to clear the entries in the fields.

Setting Mappings Properties

...

       1.      Click the Mappings subtab.

       2.      The Servlet Mappings list displays the available URL mappings to the servlet/jsp

       3.      To create a new mapping, enter a URL value in the URL Pattern field and click the OK button.

       4.      Use the Modify and Remove buttons to modify an existing mapping and to remove it from the Mappings list.

       5.      The Clear button clears the value in the URL Patternfield.

Setting Additional Properties

See Editing the Additional Properties.

Setting Security Options

...

       1.      Click the Security tab.

       2.      If you want to specify a run-as element, select the Run As Identity checkbox. For this run-as element you have to specify:

                                                  i.       A name in the Role Name field.

                                                ii.       A description in the Run as Identity Description field.

       3.      The References list contains the existing security references.

       4.      If you want to specify a new reference:

                                                  i.       In the Role Name field, enter the name of the security role as used in the code.

                                                ii.       In the Role Link field, enter a name of the link to the name of the security role reference. You can add an existing security role as a role reference. A security role has only one security role reference.

                                               iii.       Enter a short descriptive text about the security role reference in the Security Role Reference Description field.

                                               iv.       Use the Add, Modify, Remove and Clear buttons accordingly.

 

End of Content Area