日期:2014-05-19  浏览次数:20785 次

Form中接受不到数据
JSP源码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic"%>

<html>

<head>

<title>
员工查询
</title>
<style type="text/css">
body {
margin-top: 8px;
background-image: url(../images/bg2.jpg);
}

</style>

<link href="./css/new_edit.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="./js/app.edit.js"></script>
<script language="javascript" type="text/javascript" src="./js/app.uservalidate.js"></script>
</head>

<body>
<html:form action="/operationAgentAction" method="post">
<input type="hidden" name="method" value="showOperation"/>
<html:hidden property="comId"/>
<table width="765" border="0" cellspacing="2" cellpadding="1" class="table_default">
<tr>
<td height="17" colspan="4"></td>
</tr>
<tr>
<th width="15%" height="17" ><div align="center">业务员姓名</div></th>
<td width="15%">
<html:text property="agentname" styleClass="inputblue" style="width:120px" /> 
</td> 
<th width="15%" height="17" ><div align="center">所属机构</div></th>
<td width="20%">
<html:text property="comname" readonly='true' styleClass="inputblue" style="width:120px" onclick="openBrWindow('operationAgentAction.do?method=departmentTreeList','选择机构','260','400');" />
</td>
</tr>
  <tr>
<td colspan="4" align="right">
<input type="button" name="selectall" class="btn002" value="新增" onclick="openBrWindow('operationAgentAction.do?method=loadAddOperationAgent','新增业务员','730','300');" />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="selectall" class="btn002" value="删除" onclick="onDelete()" />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="btnCon" class="btn002" value="查询" onclick="Search()" />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="btnCon" class="btn002" value="重置" onclick="resetVal()" />
</td>
</tr>
</table>
<br/>
<logic:present name="PAGE">
<table width="98%" border="1" cellspacing="1" cellpadding="0" class="grid_default grid_blue" align="center">
<thead>