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

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             Web Application Page
09         </title>
10     </head>
11     <body>
12     <jsp:include page="/resources/jsp/header.jsp"/> <br/> 
13     <h3>Button Tag Sample</h3>
14     <b>Submitting Form Data</b><br>       
15         <netui:form action="processA">
16             Firstname:
17             <netui:textBox dataSource="{actionForm.firstname}"/><br>
18             Lastname:
19             <netui:textBox dataSource="{actionForm.lastname}"/><br>
20             <netui:button type="submit" value="Submit to Process A"/>
21             <netui:button type="submit" value="Submit to Process B" action="processB"/>
22             <netui:button type="reset" value="Reset" />
23         </netui:form> 
24         
25         
26     <hr>
27     <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>              
28     </body>
29 </netui:html>