EnterCoupon.jsp Sample

This topic inludes the source code for the EnterCoupon.jsp Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/complexFormBean/

Sample Source Code


01 <!--Generated by WebLogic Workshop-->
02 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
03 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
04 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
05 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
06 <netui:html>
07   <head>
08     <title>Display Customer Page</title>
09   </head>
10   <body>
11         <jsp:include page="/resources/jsp/header.jsp"/><br>
12         <h3>Display Customer Page</h3>
13         <p>
14         <font color="red"><netui:label value="{pageFlow.message}"/></font><br>
15         <br>Enter the customer's name and provide the coupon number:<br>
16         <netui:form action="submitCouponNumber" focus="">
17             <p>
18             Last Name:
19             <netui:textBox dataSource="{actionForm.customer.lastName}"></netui:textBox>
20             </p>
21             <p>
22             First Name:
23             <netui:textBox dataSource="{actionForm.customer.firstName}"></netui:textBox>
24             </p> 
25             <p>
26             Coupon Number:
27             <netui:textBox dataSource="{actionForm.couponNumber}"></netui:textBox>
28             </p>
29             <p style="font-size:8pt;">
30             [An integer less than 1000 will result in successful submission,<br>
31             an integer equal to or greater than 1000 (or a non-integerwill result in failed submission.]
32             </p>
33             <netui:button value="Submit"></netui:button>
34         </netui:form>
35         <hr>
36         <p><netui:anchor href="/WebApp/handlingData/handlingDataController.jpf">
37         Back to Handling Data Samples</netui:anchor>
38   </body>
39 </netui:html>