Index.jsp Sample

This topic inludes the source code for the Index.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/callMethod/

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:html>
06     <head>
07         <title>
08             index.jsp
09         </title>
10     </head>
11     <body>
12         <jsp:include page="/resources/jsp/header.jsp"/> 
13         <h3>CallMethod Tag Sample</h3>
14         <blockquote>
15         <p>The following message was returned by a method on the Controller file: CallMethodController.jpf.
16         <p><netui-data:callMethod object="{pageFlow}" method="hello" resultId="helloMessage"></netui-data:callMethod>
17         <%= pageContext.getAttribute("helloMessage"%>
18         
19         <p style="font-size:10pt;"><b>Note:</b> reliance on the netui-data:callMethod tag is not encouraged.
20         The data binding capabilities of Page Flows are advanced to the point that users should not have to use
21         the netui-data:callMethod tag.  Instead users are encouraged to call Java classes from withing
22         the Controller file and then use data binding expressions such as
23         {pageFlow...}{actionForm...to move data between your JSP pages and the Controller file.
24         
25         </blockquote>
26         <hr>
27         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
28     </body>
29 </netui:html>