jsp表单的值到Servlet时,给javabean赋值不成功。
JSP表单
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="Bean.*" %>
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>信息保存</title>
</head>
<body>
<form name="form1" action="xinxibaocunServlet" method="post">
<table align="center" border ="1" width="80%" height="80%">
<tr>
<td colspan="2"><input type="button" name="Close" onclick="window.close();"value="关闭">
<input type="submit" name="Save" value="保存">
<input type="reset" name="reset" value="重填">
</td>
</tr>
<tr>
<td>系统名:</td>
<td><input type="text" name="SystemName" size="13"></td>
<td>中文名:</td>
<td><input type="text" name="ChineseName" size="13"></td>
<td>人员姓名简称:</td>
<td><input type="text" name="NameShort" size="13"></td>
</tr>
<tr>
<td>所属单位:</td>
<td>
<select name="Unit">
<option selected="" value="0">--请选择--</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</td>
<td>所属部门:</td>
<td>
<select name="Department">
<option selected="" value="0">--请选择--</option>
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
</select>
</td>
<td>出生日期:</td>
<td><input type="text" name="Data" size="13"></td>
</tr>
<tr>
<td>职务:</td>
<td><input type="text" name="Job" size="13"></td>
<td>是否主持工作:</td>
<td>
<select name="HostWork">
<option selected="" value="0">--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
</td>
<td>是否单位帐号:</td>
<td>
<select name="UnitAccounts">
<option selected="" value="0">--请选择--</option>
<option value="1">是</option>
<option value="2">否</option>
</select>
</td>
</tr>
<tr>
<td>家庭电话号码:</td>
<td><input type="text" name="HomePhoneNumber" size="13"></td>
<td>手机号码:</td>
<td><input type="text" name="MobileNumber" size="13"></td>
<td>虚拟号:</td>
<td><input type="text" name="VirtualPageNumber" size