struts1.2中如何在<html:text>中显示循环出的信息
<html:formaction="icccm.do?method=updateIcccm"><logic:presentname="icccm"scope="reque...
<html:form action="icccm.do?method=updateIcccm" >
<logic:present name="icccm" scope="request">
<logic:iterate id="one" name="icccm" scope="request">
<logic:present name="one">
<html:text property="clientName" value='<bean:write name="one" property="clientName"/>'/><html:errors property="clientName"/>
</logic:present>
</logic:iterate>
</logic:present>
<div align="right">
<html:submit>修改</html:submit>
在页面显示的是<bean:write name="one" property="clientName"/>如何才能显示数据啊 谢了 展开
<logic:present name="icccm" scope="request">
<logic:iterate id="one" name="icccm" scope="request">
<logic:present name="one">
<html:text property="clientName" value='<bean:write name="one" property="clientName"/>'/><html:errors property="clientName"/>
</logic:present>
</logic:iterate>
</logic:present>
<div align="right">
<html:submit>修改</html:submit>
在页面显示的是<bean:write name="one" property="clientName"/>如何才能显示数据啊 谢了 展开
1个回答
展开全部
<html:text property="clientName" value='<bean:write name="one" property="clientName"/>'/>
改成:
<bean:define id="beanWriteValue" name="one" property="clientName"/>
<html:text property="clientName" value='<%=beanWriteValue.toString() %>'/>
改成:
<bean:define id="beanWriteValue" name="one" property="clientName"/>
<html:text property="clientName" value='<%=beanWriteValue.toString() %>'/>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询