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

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>ImageButton 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:imageButton src="../../../resources/images/submit.gif"/>
21         </netui:form>   
22     
23         <hr>
24         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>            
25     </body>
26 </netui:html>