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/bindingUpdateErrors/

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>BindingUpdateErrors Tag Sample</h3>
14         <p>
15         <h4>The error messages on this page are thrown intentionally to demonstrate the 
16         <code>&lt;netui:bindingUpdateErrors></code> tag</h4>
17         <p><netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">
18         Return to Tag Samples</netui:anchor>
19 
20         <p><netui:bindingUpdateErrors expression="{pageFlow._nonExistentField}"/>
21         
22         <p><netui:label value="{pageFlow._nonExistentField}"/>
23         <p><netui:label value="{pageFlow._anotherNonExistentField}"/>
24         
25     </body>
26 </netui:html>