Multiple Webject Execution
By using the parallel custom tag, you can execute more than one webject at the same time.
For example, the following JSP page executes two queries at the same time. When both queries complete, the resulting groups are joined and then displayed:
<html>
<body>

<ie:parallel>

<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="jdbcAdapter"/>
<ie:param name="CLASS" data="EMP"/>
<ie:param name="WHERE" data="()"/>
<ie:param name="GROUP_OUT" data="employees"/>
</ie:webject>

<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="jdbcAdapter"/>
<ie:param name="CLASS" data="DEPT"/>
<ie:param name="WHERE" data="()"/>
<ie:param name="GROUP_OUT" data="departments"/>
</ie:webject>

</ie:parallel>

<ie:webject name="Join-Groups" type="GRP">
<ie:param name="GROUP_IN" data="employees"/>
<ie:param name="GROUP_IN" data="departments"/>
<ie:param name="JOINBY" data="DEPTNO"/>
<ie:param name="JOIN_TYPE" data="MAX"/>
<ie:param name="SORTED" data="ASC"/>
<ie:param name="GROUP_OUT" data="join-results"/>
</ie:webject>

<ie:webject name="Display-Object" type="DSP">
<ie:param name="BORDER" data="1"/>
<ie:param name="CAPTION" data="taglib query table"/>
<ie:param name="FOOTER" data="done."/>
<ie:param name="UNDEFINED" data="-"/>
<ie:param name="ALIGN" data="left"/>
<ie:param name="VALIGN" data="top"/>
<ie:param name="CELLPADDING" data="5"/>
<ie:param name="CELLSPACING" data="1"/>
</ie:webject>

</body>
</html>
For the details on the custom tags used, see the tag descriptions in the Info*Engine Custom Tag Reference.
Isto foi útil?