FirstName.jsp Sample

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

Sample Source Code


01 <%@page contentType="text/html;charset=UTF-8" language="java"%>
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 <html>
06     <head>
07     <netui:base/>
08     <link href="../../resources/css/style.css" type="text/css" rel="stylesheet"/>
09     </head>
10     <body>
11     <jsp:include page="/resources/jsp/header.jsp"/>
12     <blockquote>
13     <h3>First Name</h3>
14     <p>Enter a first name.</p>    
15     <netui:form action="firstNameAction" focus="firstname">
16         <table border="0">
17             <tr>
18                 <td>
19                     Please enter your first name: 
20                     <netui:textBox dataSource="{pageFlow.pageFlowScopedBean.firstname}" />
21                 </td>
22             </tr>
23             <tr>
24                 <td> 
25                     <netui:imageAnchor action="firstNameAction" src="../../resources/images/blue_next.gif" formSubmit="true" border="0" align="right" />
26                 </td>
27             </tr>
28         </table>
29     </netui:form>
30     </blockquote> 
31   </body>
32 </html>