Struts: <bean :define> problem
<bean:define id="riskserialno" property="accouRequest.riskserialno" name="accoManagementForm" type="java.lang.String"/>
报错:
解决方案为:
加一个判空的标签
<logic:present name ="accoManagementForm" property="accouRequest.riskserialno"> <bean:define id="riskserialno" property="accouRequest.riskserialno" name="accoManagementForm" type="java.lang.String"/> </logic:present> <logic:notPresent name ="accoManagementForm" property="accouRequest.riskserialno"> <bean:define id="riskserialno" value="null"/> </logic:notPresent>