Source and class file locations  Internationalization

Chapter 24: Creating JavaServer Pages

Creating and configuring JSPs in EAServer

JSPs in EAServer must be created in a Web application. If necessary, create the Web application to contain the JSPs as described in Chapter 21, “Creating Web Applications.” You can create new JSPs in EAServer Manager or import them from existing JSP source files.

StepsCreating or importing JSPs

  1. In EAServer Manager, select the Web Application folder.

  2. Select an existing Web application to which you are adding a JSP, then import the JSP or create a new one as follows:

StepsConfiguring the JSP properties

To configure your JSP, double-click the JSP or highlight the JSP and select File | Web Application Component Properties. Complete the information described below:

  1. General properties – select this tab to enter general parameters for your JSP:

  2. Init-Args – select this tab to enter the initialization parameters associated with the JSP. If your JSP uses externally configured parameters, add or modify the values with the controls on this tab:

  3. Advanced – to improve JSP performance, set the value of the com.sybase.jaguar.webapplicaton.jspc-interval property, which determines if and when the JSP runtime checks whether a JSP is current. Set the property value to an integer.

    Complete the rest of the properties as you would for a servlet.

To configure security for your JSP, see Chapter 3, “Using Web Application Security,” the EAServer Security Administration and Programming Guide.

StepsEditing the JSP source

EAServer supplies an editor for creating and modifying your JSP files; however, you can use any text editor to perform the same tasks. To edit the JSP in EAServer Manager:

  1. Open the Web Application folder and select the Web application to which the JSP belongs.

  2. Highlight the JSP.

  3. Select File | Edit JSP. An editor displays where you can view and modify your JSP. Locate other files for editing by selecting File | Open. When you are finished, select File | Save.

StepsDeleting a JSP

  1. Open the Web Application folder and select the Web application to which the JSP file belongs.

  2. Highlight the JSP.

  3. Select File | Delete Web Application Component.





Copyright © 2005. Sybase Inc. All rights reserved. Internationalization

View this book as PDF