Display Webjects and JSP Pages
The Info*Engine display webjects give you a quick way to display information that has been gathered and manipulated by Info*Engine and its adapters. A display webject is specified by DSP in the type attribute on the webject tag. For example, the DisplayTable.jsp page described previously contains the following webject tag:
<ie:webject name="Display-Table" type="DSP"/>
Notice that the type attribute on the webject tag is set to “DSP”, which indicates that the Display-Table webject is a display webject. In this case, the webject requires no parameters and therefore, the webject tag syntax used requires only the /> characters to end the tag.
To display information in a web browser, you can combine HTML display elements with the display webjects that are specifically tailored for use with HTML. These webjects provide the ability to display generated data in the following formats:
Display Format
Webject
HTML tables
Display-Table
HTML form elements
Display-Selection
HTML elements such as a check box, radio button, or text box
Display-Value
Author-specified HTML coding
Display-Object
When coding webjects that utilize HTML, you should nest all of your HTML tags and webjects inside the following set of HTML tags:
<html>
<body>
:
:
</body>
</html>
In addition to the general display webjects listed in the previous table, there are display webjects available for use with HTML that provide the ability to do the following:
Apply an XSL stylesheet to data
Display data coded in XML tags
Provide localized text
The DisplayTable.jsp example page described earlier shows one use of the Display-Table webject. Display Webject Reference describes all display webjects. There are also display webjects used in the examples shown in the following sections.
¿Fue esto útil?