<%@page contentType="text/html;charset=gb2312"%>
<%@ taglib uri="/struts-logic" prefix="logic" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<html:html locale="true">
<head>
<html:base/>
<title>
<bean:message key="index.title"/>
</title>
</head>
<body>
<h2>创建一个用户</h2>
<html:errors/>
<html:form action="createUser.do"  method="GET" enctype="gb2312" focus="userName" name="userForm" scope="request" target="_top" type="com.jspdev.ch17.TestUserForm"> 
        userName:<html:text property="userName" /> <br/>
        password:<html:password property="password" /> <br/> 
       age: <html:select property="age">
				<html:option value="21">21</html:option>
				<html:option value="22">22</html:option>
				<html:option value="23">23</html:option>
				<html:option value="24">24</html:option>
		  </html:select>      
          <br/> 
              
       爱好:<html:checkbox property="hob" value="male">computer</html:checkbox>   
            <html:checkbox property="hob" value="female">read</html:checkbox>
            <br/>
       性别:<html:radio property="sex" value="male">男</html:radio>   
            <html:radio property="sex" value="female">女</html:radio>
            <br/>
        <html:submit property="submit"/>
    </html:form>
</body>
</html:html>