![]() |
![]() |
JSPs provide a convenient way to present dynamically generated content over the Internet. JSPs are used to implement portlets and can contain static HTML code, JSP tag libraries, JSP scriptlets that access EJB components, or any other application functionality available with the application server.
WebLogic Workshop makes it easy to create a JSP: click the target folder and choose File —> New —> JSP File. The JSP Editor opens and displays a JSP file with basic HTML content.
The following table describes the JSP editing tools shown in the previous figure.
Create, view, and edit JSP files in your portal application projects. The names of JSP files end in .jsp. |
||
Design your JSP in this area. Switch between the Design and Source code views, as required; changes made in one view are automatically reflected in the other. In Design View, the HTML elements on the JSP page are rendered as they would be shown in a browser. The Java code and other elements are rendered in a schematic fashion. |
||
Add JSP tags to your JSP content by dragging components from the Palette window and dropping them onto the Design View canvas. JSP tags can be categorized as follows:
WebLogic Workshop includes the required tag libraries in the WEB-INF folder. The *.tld files are J2EE-standard tag library descriptor files. The *.tldx files are WebLogic Workshop specific files that contain information about how the tags behave within the IDE. |
||
Navigate through the rows and columns of the selected table, and add, merge, or delete select cells and rows. |
||
Set properties for the JSP file component that is currently selected. You can select a JSP tag component by clicking on it in the Design View canvas, n the hierarchical tag structure shown in the Design View status bar (see Figure: JSP Tag Hierarchy in Design View Status Bar), or in the Document Structure window (described below). |
||
View the JSP tags in the JSP file in a hierarchical structure (see Figure: Document Structure Window for a JSP File). You can click any JSP component in the Document Structure window to select it in the Design View and edit its properties. |
The following figure shows the Document Structure window for a JSP file.
Document Structure Window for a JSP File
The current JSP tag hierarchy is also reflected in the Design View status bar, as shown in the following figure.
JSP Tag Hierarchy in Design View Status Bar
To learn more about creating JSP content:
![]() |
![]() |