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

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"/>
13         <h3>CheckBoxOption Tag Sample</h3>
14         The following netui:checkBoxOptions have a default value of true(The default value is set in the 
15         Controller file.)         
16         <netui:form action="processData">
17             <netui:checkBoxGroup dataSource="{actionForm.data}">
18                 <netui:checkBoxOption value="CDtrue">Do you want to be notified of special CD offers?</netui:checkBoxOption><br>
19                 <netui:checkBoxOption value="DVDtrue">Do you want to be notified of special DVD offers?</netui:checkBoxOption><br>
20             </netui:checkBoxGroup>
21             <netui:button value="Submit" type="submit"/>
22         </netui:form>
23     
24         <hr>
25         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
26     </body>
27 </netui:html>