谢谢!哦!只要能让table变的规则点就可以了 谢谢哦!
<%@ page language="java" pageEncoding="GB2312"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
 <html> 
<head>
<title>JSP for RegisterForm form</title>
</head>
<body>
<html:form action="/register" method="post">
<table width="43%" border=1 align="center" cellpadding="0" cellspacing="0">
<tr>
<td>用户名:</td>
<td><html:text property="userName" size="20"/><br></td>
</tr>
<tr>
<td>密码:<br></td>
<td><html:password property="password" size="20"/><br></td>
</tr>
<tr>
<td>确认密码:<br></td>
<td><html:password property="psw"/><br></td>
</tr>
<tr>
<td>年龄:<br></td>
<td><html:text property="age"/><br></td>
</tr>
<tr>
<td>性别:<br></td>
<td align="right"><html:radio porperty="sex" value="male"/>男</td>
<td><html:radio porperty="sex" value="female"/>女</td>
</tr>
<tr>
<td>职业:<br></td>
<td><html:select property="carrer"><html:option value="teacher">老师</html:option>
<html:option value="reporter">记者</html:option>
<html:option value="student">学生</html:option>
<html:option value="businessman">商人</html:option>
<html:option value="farmer">农民</html:option>
<html:option value="worker">工人</html:option>
<html:option value="doctor">医生</html:option>
<html:option value="else">其他</html:option>
</html:select><br></td>
        </tr>
<tr>
<td>电子邮件:<br></td>
<td><html:text property="email"/><br></td>
</tr>
<tr>
<td>爱好:<br></td>
<td><html:textarea property="hobby"/></td>
</tr>
<tr><td><html:submit value="发送"/></td><td><html:cancel value="重写"/></td>
</tr></table>
</html:form>
</body>
</html>