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