Create a JSP target

Note

You run the JSP Target wizard to create a JSP target in PowerBuilder.

  1. In PowerBuilder, select File>Open Workspace and navigate to the Tutorial folder.

    Select MyWorkspace.pbw and click Open.

    If you recently completed the Client/Server or the Web Target tutorial, this workspace might already be open. If you did not, and you cannot find MyWorkspace.pbw, make sure you follow the instructions in “Setting up for the tutorial”.

  2. Click the New button in the PowerBar.

    Click the Target tab in the New dialog box and select JSP Target.

    Click OK.

    The introductory page of the JSP Web Target wizard displays.

  3. Click Next.

    The Specify New JSP Target wizard page displays. The default name for the Web target is Target1.

  4. Type jspTutorial.pbt in place of Target1.pbt.

    The Source folder and Build folder names will change automatically to reflect the target name change when you click Next.

  5. Click Next until the Choose EAServer Profile page displays.

    You accept the default settings for the following items:

    Wizard Option

    Default

    Deployment Configuration Name

    jspTutorialDeployConfiguration1

    Description

    Deployment Configuration

    Object Model

    I am using the default object model

    JSP Server

    EAServer

  6. Make sure the EAServer profile you want is selected.

    If you completed the Web Target tutorial, select the profile named local. This profile uses the name of your local machine as the server name. If you do not have an EAServer profile, click Cancel to exit the wizard, follow the instructions to “Set up an EAServer connection profile”, then restart the current lesson.

    The Choose EAServer Profile page of the wizard page also has an HTTP Port field that displays the default value 8080. Do not change this port number unless you also change the HTTP listener port for EAServer in Jaguar Manager.

  7. Click Next until the Ready to Create JSP Target page displays.

    You accept the default settings for the following items:

    Wizard option

    Default

    Deploy What

    Deploy All or Nothing

    Rebuild

    Incremental

    Local Copy Folder

    Program Files\Sybase\PowerBuilder 10.5\Tutorial \jspTutorial\jspTutorialDeployConfiguration1

    WAR File Name

    jspTutorial.war

  8. Review your selections on the Ready to Create JSP Target page.

    Click Finish to accept the selections.

    The wizard creates the jspTutorial target, a directory structure that stores your files, and a deployment configuration. The Source and Build folders do not display in the System Tree, but a wizard-created WEB-INF directory is visible in the System Tree along with two subdirectories and the web.xml file for your target.