CallControl.jsp Sample
This topic inludes the source code for the CallControl.jsp Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/callControl/
Sample Source Code
01 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
02 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
03 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
04 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
05 <netui-data:declareControl type="tagSamples.netui_databinding.callControl.HelloWorldControl" controlId="helloWorldControl"></netui-data:declareControl>
06 <netui:html>
07 <head>
08 <title>
09 calControl.jsp
10 </title>
11 </head>
12 <body>
13 <jsp:include page="/resources/jsp/header.jsp"/>
14 <h3>CallControl Tag Sample</h3>
15 <blockquote>
16 <p>The following message was returned from a method on a Web Service.
17 <p>The method was called through a Web Service Control.
18 <p><netui-data:callControl controlId="helloWorldControl" method="hello" resultId="helloMessage" />
19 <%=pageContext.getAttribute("helloMessage")%>
20
21 <p style="font-size:10pt;"><b>Note:</b> reliance on the netui-data:callControl tag is not encouraged.
22 The data binding capabilities of Page Flows are advanced to the point that users should not have to use
23 the netui-data:callControl tag. Instead users are encouraged to call controls from within the Controller file
24 and use data binding expressions such as {pageFlow...}, {actionForm...} to move data between your JSP pages and the Controller file.
25
26 <hr>
27 <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
28 </body>
29
30 </netui:html>
|