Show TOC Start of Content Area

Procedure documentation Configuring Environment Entries  Locate the document in its SAP Library structure

Use

Environment entries are application-scoped. They can only be used by components of the Web application in the environment in which they are defined. You configure the environment entries in the web.xml deployment descriptor.

Procedure

On the web.xml screen, proceed as follows:

...

       1.      Choose the Environment screen.

       2.      Select Environment entries and choose Add to add an entry.

       3.      Enter the following information in the corresponding fields that appear on the screen:

                            a.      Enter the name of the environment entry in the Environment Entry Name field. This is the name that you use in your servlet (or JSP) code to look up that resource. It is relative to the java:comp/env context.

                            b.      Choose the Java type of the environment entry from the Environment Entry Type drop-down list.

                            c.      Optionally, enter a value that the environment entry is instantiated with in the Environment Entry Value field. This value is passed as a parameter of the constructor of the environment entry, so you must make sure the value you enter is valid for the constructor of the chosen Java type.

                            d.      Optionally, enter a description of the environment entry that you define in the Description field.

 

End of Content Area