JSP Components
 
Creating the JSP Component's .war File
 
To package the AccountBean.class and Account.jsp files in a .war file, you run the New Web Component Wizard of the Application Deployment Tool. To start the wizard, from the File menu choose New Web Component. The wizard displays the following dialog boxes. (You may skip any dialog boxes not listed here.)
 
WAR File General Properties Dialog Box:
a. In the combo box labelled "Web Component Will Go In," select AccountJSPApp.
b. In the WAR Display Name field, enter AccountWAR.
c. Click Add.
d. In the Add Content Files dialog box, choose the root directory containing the Account.jsp file (examples/jsptobean). You may either type the directory name in the Root Directory field or locate it by clicking Browse.
e. Select the Account.jsp file from the text area and click Add.
f. Click Next.
g. In the Add Class Files dialog box choose, the examples/jsptobean directory again.
h. Select the AccountBean.class file from the text area and click Add.
i. Click Finish.
j. Click Next.
 
Choose Component Type Dialog Box:
a. Select JSP.
b. Click Next.
 
Component General Properties Dialog Box:
a. In the JSP Filename combo box, select Account.jsp.
b. In the Web Component Display Name field, enter TheAccount.
c. Click Next.
 
Enterprise Bean References Dialog Box:
a. Click Add.
b. In the Coded Name column enter ejb/Account.
c. In the Type column select Entity.
d. In the Home column enter AccountHome.
e. In the Remote column enter Account.
f. Click Finish.
 
 
Specifying the Web Context Root
1. In the tree view select AccountJSPApp.
2. In the Web Context tabbed pane, enter AccountContextRoot in the ContextRoot column.