JSP pages can be written in any well-formed language, including XML, but they are usually written in HTML. In PowerBuilder, when you create a new Web page, the page wizard gives it the extension .jsp by default instead of .htm. You edit JSP pages in much the same way as any other HTML page.
Standard HTML elements, controls, and client-side scripts are available to JSP pages. In addition, JSP-specific elements are available in the development environment for editing JSP Web pages:
In the Page view, JSP standard actions and scripting elements are represented by icons showing the element’s delimiters. When you select a scripting element or a 4GL server-side event, Java is the only language available in the script editor.
Icon |
Description |
---|---|
<%> |
Server-side scriplet |
<%=> |
Server-side expression |
<%!> |
Server-side declaration |
<jsp:> |
Standard action, such as |
</jsp:> |
Close tag of standard action, such as |
<jsp:/> |
Self-closing standard action, such as |
<ctl:> |
Custom tag, such as |
</ctl:> |
Close tag of custom tag, such as |
<ctl:/> |
Self-closing custom tag, such as |
<?:> |
Unknown custom tag |
<%@ins> |
Include page directive, such as |