This is a feature of JBuilder Professional and Enterprise.
The JavaServer Page (JSP) wizard creates a JSP consisting of one to three files and adds it to the existing project.
JSPs are discussed in more detail in "Developing JavaServer Pages". You can find a tutorial which uses this wizard to create a JSP in "Creating a JSP using the JSP wizard".
The JSP wizard creates the following files:
.jsp
. This file is always created by the JSP wizard.
To open the JSP wizard, choose File|New, select the Web tab of the Object Gallery, then select JavaServer Page.
This is a feature of JBuilder Professional and Enterprise.
Select the WebApp to which this JSP belongs. It is advisable to use a named WebApp, since if you use the default WebApp, you will not be able to create a WAR file for it.
The name of the JSP. A file with this name and the the extension .jsp
will be created. If optional files are created, this name will also be used as a prefix for their names.
Check this option to enable the JSP wizard to generate an HTML <FORM>
tag in the JSP file.
Check this option to set up the JSP to use the InternetBeans Express tag library. Enter the prefix to use for the tag library. The default is: ix
. When this option is selected, a file called internetbeans.tld
will be viewable (but not editable) in your project after completion of the wizard. This is the tag library definition file for InternetBeans Express.
The background color of the JSP file as it appears in the browser.
Check this option to enable the JSP wizard to create an error page. A file named <name>ErrorPage.JSP
is added to the project.
Check this option to enable the JSP wizard to create a sample JavaBean in a .java
file, and to create a JSP tag in the JSP file that uses the sample JavaBean.
This is a feature of JBuilder Professional and Enterprise.
This step will be skipped unless you checked Generate Error Page in on the first page of the wizard.
Enter the name for the error page.
This is the background color of the error page when shown in the browser.
This is a feature of JBuilder Professional and Enterprise.
This page will be skipped if you unchecked Generate Sample Bean on the first page of the wizard. This page lets you modify the settings for the JavaBean that will be used by the main JSP page.
Displays the package name derived from the project file. To assign a different package name to the JSP, click in the Package field and type in a new name.
For more information on packages, see the "Packages" topic in the "Creating and managing projects" chapter of Introducing JBuilder.
The name for the sample bean file.
Uses information from the project file as header comments at the top of the sample bean class file. This is the information you entered in the Project wizard when creating the project file.
/** * Title: Your product name * Description: Your description * Copyright: Copyright (c) 2001 * Company: Your company * @author Your name * @version 1.0 */
This is a feature of JBuilder Professional and Enterprise.
This page provides an easy way to locate additional JavaBeans, add them to your project, and add JSP tags that reference these beans to the JSP file. The beans can then be used within the JSP.
You can select a bean either from this project or another project. Selecting a bean here will add a <jsp:useBean> tag to the JSP file.
Select this button to launch the class finder, which helps you locate the bean to be added to this project. When a bean is selected the Class, ID, and Scope fields will be filled in. Each of these fields may be edited, as necessary.
Click this button to remove the selected bean from the project.
Displays the bean chosen when Add Bean was selected. A useBean
tag will be placed in the JSP file for each bean displayed.
An identification tag within the JSP file for the bean. This field may be edited to a more descriptive identification.
The lifetime of the bean. Select Page, Session, or Application.
Click Finish to add the JSP and any optional files you have selected to the current project.