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>

 

posted @ 2017-12-05 10:39  理解龙儿  阅读(258)  评论(0编辑  收藏  举报