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/navigation/nesting/nestedPageFlow/

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"/> <br/> 
13         <h3>User Profile</h3>
14         <p>This is the <i>nested</i> Page Flow.
15         <p>When you submit the form below, the data will be returned to the nesting Page Flow.
16         <blockquote>
17         <p>Please provide the following user profile information.
18         <netui:form action="submitProfile">
19             <table>
20                 <tr valign="top">
21                     <td>FirstName:</td>
22                     <td>
23                     <netui:textBox dataSource="{actionForm.firstName}"/>
24                     </td>
25                 </tr>
26                 <tr valign="top">
27                     <td>LastName:</td>
28                     <td>
29                     <netui:textBox dataSource="{actionForm.lastName}"/>
30                     </td>
31                 </tr>
32                 <tr valign="top">
33                     <td>Age:</td>
34                     <td>
35                     <netui:textBox dataSource="{actionForm.age}"/>
36                     </td>
37                 </tr>
38             </table>
39             <br/>&nbsp;
40             <netui:button value="Submit Profile" type="submit"/>
41         </netui:form>
42         </blockquote>
43     </body>
44 </netui:html>