读书人

Cannot retrieve definition for form

发布时间: 2012-02-24 16:30:38 作者: rapoo

Cannot retrieve definition for form bean null on action /savePlanB
配置文件:
<form-bean name="savePlanBForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="planAmount" type="java.lang.String" />
<form-property name="memo" type="java.lang.String" />
<form-property name="planDate" type="java.lang.String" />
<form-property name="storage" type="java.lang.String" />
<form-property name="operator" type="java.lang.String" />
<form-property name="documentNo" type="java.lang.String" />
<form-property name="factory" type="java.lang.String" />
</form-bean>

<!-- @3.采购计划 -->
<action path="/expPlanB"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="/equipment/displayExpPlan.jsp" />
</action>

<!-- 消耗品生成采购计划 -->
<action
path="/savePlanB" attribute="savePlanBForm" name="savePlanBForm"
parameter="operate" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="/equipment/LexpPlanB.jsp" />
</action>

页面部分

<html>
<head>
<title>加中科技医院信息系统</title>
<link href="<%=path%>/inc/style.css" rel="stylesheet">
<script language="javascript" src="<%=path%>/inc/select_date.js"
charset="utf-8"></script>
<script language="javascript" type="text/javascript" charset="utf-8"
src="<%=path%>/inc/ajax.js"></script>
<script>
function check(){
if(document.all.documentNo.value==""){
alert("采购单号不能为空!");
document.all.documentNo.select();
document.all.documentNo.focus();
return false;
}
if(document.all.factory.value==""){
alert("供货方不能为空!");
document.all.factory.focus();
return false;
}
if(document.all.storage.value==""){
alert("库存管理单位不能为空!");
document.all.storage.focus();
return false;
}
if(document.all.planDate.value==""){
alert("计划采购日期不能为空!");
return false;
}
document.savePlanBForm.submit();
}
function clear(){
var info='<%=info%>';
if(info!='null'){
alert(info);
}
cument.all.documentNo.value="<%=nextDoumentNo%>" ;
document.all.factory.value="";
document.all.storage.value="";
document.all.planDate.value="";
document.all.planAmount.value="";
document.all.memo.value="";
}
</script>
</head>
<body onload="clear()" oncontextmenu="window.event.returnValue=false">
<table align="center" border="0" cellspacing="1" cellpadding="0"
class="tableborder" width="95%">
<tr>
<td height="30px" align="left" class="row" colspan="8">


<a href="<%=path%>/drug/durgPlanQuery.jsp">查询采购计划</a>
</td>
</tr>
<tr>
<th align="center" class="th" colspan="4" height="30">
制定物资采购计划
</th>
</tr>
<tr>
<td class="row" height="30" width="15%" align="right">
上次采购单号:  
</td>
<td class="row" height="30" width="35%" align="left">
  
<bean:write name="tExpPlanMaster" property="documentNo"/>
</td>
<td class="row" height="30" width="15%" align="right">
采购日期:  
</td>
<td class="row" height="30" width="35%" align="left">
  
<bean:write name="tExpPlanMaster" property="planDate"/>
</td>
</tr>
</table>
<br>
<table align="center" border="0" cellspacing="1" cellpadding="0"
class="tableborder" width="95%">
<tr>
<th align="center" class="th" width="15%" height="30">
采购单号
</th>
<th align="center" class="th" width="12%" height="30">
库存单位
</th>
<th align="center" class="th" width="19%" height="30">
供货方
</th>
<th align="center" class="th" width="15%" height="30">
计划采购日期
</th>
<th align="center" class="th" width="15%" height="30">
参考应付款
</th>
<th align="center" class="th" width="21%" height="30">
操作
</th>
</tr>
<tr>
<td height="30px" align="center" colspan="6">
<!-- <iframe frameborder="0" align="middle" width="100%" height="120"
src="<%=path%>/purchaseInfo.do?flag=1" scrolling="yes" marginwidth="0"
marginheight="0"></iframe> -->
</td>
</tr>
</table>
<br>
<html:form action="/savePlanB" onsubmit="return check()">
<table align="center" border="0" cellspacing="1" cellpadding="0"
class="tableborder" width="95%">
<tr>
<th align="center" class="th" colspan="4" height="30">
本次物资采购计划
</th>
<html:hidden property="operator" />
</tr>
<tr align="center">
<td class="row" height="30" align="right">
采购单号:
</td>
<td class="row" height="30" align="left">
<html:text property="documentNo" readonly="true" />
<font color="red">*</font>
</td>
<td class="row" height="30" align="right">
供货方:
</td>
<td class="row" height="30" align="left">
<html:select property="factory">
<html:option value="">                  </html:option>


<logic:present name="factory">
<html:options collection="factory" property="facCode"
labelProperty="facName" />
</logic:present>
</html:select>
<font color="red">*</font>
</td>
</tr>
<tr align="center">
<td class="row" height="30" align="right">
库存管理单位:
</td>
<td class="row" height="30" align="left">
<html:select property="storage">
<html:option value="">                  </html:option>
<logic:present name="storage">
<html:options collection="storage" property="storeId"
labelProperty="storeName" />
</logic:present>
</html:select>
<font color="red">*</font>
</td>
<td class="row" height="30" align="right">
计划采购日期:
</td>

<td class="row" height="30" align="left">
<html:text property="planDate" readonly="true" />
<a
href="javascript:ShowCalendar(document.all.imageCalendar1,document.all.purchaseDate,null,0,330)">
<img src='<%=path%>/images/BUTTON.GIF' width=34 height=21
border=0 align=middle id=imageCalendar1> </a>
<font color="red">*</font>
</td>
</tr>
<tr align="center">
<td class="row" height="30" align="right">
参考应付款:
</td>
<td class="row" height="30" align="left">
<html:text property="planAmount" />
</td>
<td class="row" height="30" align="right">
备注:
</td>
<td class="row" height="30" align="left">
<html:textarea property="memo" cols="19" />
</td>
</tr>
<tr align="center">
<td class="td" height="30" colspan="4">
<html:image page="/images/submit.gif" />
</td>
</tr>
</table>
</html:form>
</body>
</html>
错误:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on action /savePlanB
高手帮忙看看什么原因!!!

[解决办法]

如需要阅读该回复,请登录或注册CSDN!


[解决办法]

如需要阅读该回复,请登录或注册CSDN!


[解决办法]

如需要阅读该回复,请登录或注册CSDN!


[解决办法]

如需要阅读该回复,请登录或注册CSDN!


[解决办法]

如需要阅读该回复,请登录或注册CSDN!

读书人网 >Java Web开发

热点推荐