Adding Static Content to a JSP Page

JDeveloper provides the Component Palette and the Property Inspector on the right hand side of the JSP/HTML Visual Editor. You can also use the JSP Source Editor by clicking the Source Editor tab next to the Design tab at the bottom of the page. The Component Palette enables you to add components to the page and the Property Inspector enables you to set the properties of the components. A blank page in the Visual Editor is shown in Figure 4-3.

Figure 4-3 Adding Content to JSP Pages in the JDeveloper Visual Source Editor

Description of Figure 4-3 follows
Description of "Figure 4-3 Adding Content to JSP Pages in the JDeveloper Visual Source Editor"

The following steps show how you can add text to the employees.jsp page. They use the Visual Editor to modify the JSP. The Visual Editor is like a WYSIWYG editor and you can use it to modify content.

  1. With employees.jsp open in the Visual Editor, in the top line of your page, type AnyCo Corporation: HR Application. From the list of styles at the top of the page, on the left-hand side, select Heading 2.
  2. With the cursor still on the heading you added, from the Design menu select Align, and then Center.
  3. In a similar way, on a new line, type Employee Data, and format it with the Heading 3 style. Position it on the left-hand side of the page.