Submit.jsp Sample

This topic inludes the source code for the Submit.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/databinding/actionForm/

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         <title>
07             actionForm.jsp
08         </title>
09         <link href="/WebApp/resources/css/style.css" type="text/css" rel="stylesheet"/>
10     </head>
11     <body>
12         <jsp:include page="/resources/jsp/header.jsp"/> 
13         <h3>Databinding Samples: {actionForm...Context</h3>
14         <p>This sample uses the {actionForm...data binding context to submit the form data
15         below.  
16         <blockquote>
17             <netui:form action="submit">
18                 Name: 
19                 <netui:textBox dataSource="{actionForm.name}" /><br>
20                 <netui:button value="Submit" />
21             </netui:form>
22         </blockquote>
23         <hr>
24         <p><netui:anchor href="/WebApp/handlingData/databinding/databindingController.jpf">
25         Back to Databinding Samples</netui:anchor>
26     </body>
27 </netui:html>