日期:2014-05-17  浏览次数:20803 次

does not contain handler parameter named 'opp'. This may be caused by whitespace in the label text
我在用Struts 做项目的时候 用到了 DispatchAction 这个类 但是当我提交的时候 就出现了这个问题:
does not contain handler parameter named 'opp'. This may be caused by whitespace in the label text

现在给出我写的源码:
希望有高手指点。。。=!

Jsp页面:<%@ page language="java" pageEncoding="UTF-8"%>

<html:html lang="true">
<head>
<html:base />

<title>addPerson.jsp</title>
<script type="text/javascript">
function doSubmit(op){
document.forms[0].elements["op"].value = op;
document.forms[0].submit();
}
</script>
</head>

<body>
<div style="text-align: center; width: 100%; height: 500px;"
align="center">
<div style="text-align: center; width: 700px; height: 500px;"
align="center">
<html:form action="/personInfo">
<html:hidden property="opp"/>
<p>
个人信息
</p>

<div style="text-align: center; size: 12px;">
<table width="100%" border="0" style="text-align: left;">
<tr>
<td width="80" height="15">
姓名:
</td>
......略。。。。。
<td>
<label>
<html:select property="rid">
<html:options collection="listRelation" property="rid"
labelProperty="rname" />
</html:select>
<html:errors property="rid" />
</label>
</td>
</tr>
<tr>
<td>
婚姻状况:
</td>
<td>
<html:select property="mid">
<html:option value="1">未婚</html:option>
<html:option value="2">已婚</html:option>
<html:option value="3">离异</html:option>
</html:select>
<html:errors property="mid" />
</td>
<td width="160" style="text-align: right;">
所属户:
</td>
<td>
<html:select property="hid">
<html:option value="1">一户</html:option>
<html:option value="2">二户</html:option>
<html:option value="3">三户</html:option>
</html:select>
<html:errors property="mid" />
</td>
</td>
</tr>
<tr>
<td>
定居原因:
</td>
<td>
<html:select property="moveStateId">
<html:options collection="listMove" property="moveStateId"
labelProperty="moveReason" />
</html:select>
<td width="160" style="text-align: right;">
服务处所:
</td>
<td>
<html:text property="unit" />
<html:errors property="unit" />
</td>
</tr>
<tr>
<td height="15">
居住地址:
</td>
<td colspan="3">
<html:text property="caddress" style=&q