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 <html>
06 <head>
07 <title>
08 index.jsp
09 </title>
10 <link href="/WebApp/resources/css/style.css" type="text/css" rel="stylesheet"/>
11 </head>
12 <body>
13 <jsp:include page="/resources/jsp/header.jsp"/>
14 <h3>Form Tag Sample</h3>
15 <!--
16 The name, type, and scope attributes are used to prepopulate the form with default values.
17 The default values are stored in the "Session" object, in an object named "defaultValues",
18 of type "tagSamples.netui.form.FormController$ProcessDataBean".
19 These default values are defined in the Controller file's onCreate() method.
20 -->
21 <netui:form
22 action="processData"
23 name="defaultValues"
24 type="tagSamples.netui.form.FormController$ProcessDataBean"
25 scope="session">
26 <table>
27 <tr valign="top">
28 <td>
29 Name:
30 </td>
31 <td>
32 <netui:textBox dataSource="{actionForm.name}"/>
33 </td>
34 </tr>
35 <tr valign="top">
36 <td>
37 Age:
38 </td>
39 <td>
40 <netui:textBox dataSource="{actionForm.age}"/>
41 </td>
42 </tr>
43 </table>
44 <br/>
45
46 <netui:button value="Submit" type="submit"/>
47 </netui:form>
48
49
50 <hr>
51 <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
52 </body>
53 </html>
|