日期:2014-05-20  浏览次数:20643 次

struts页面为何不编译
<td nowrap>
<html:text property="truckBean.driverName" maxlength="9" styleClass="Text_Box" style="width:95%;" onkeyup="keyupdea(this, '<%=SearchListForm.EVENT_SEARCH_DRIVERNAME%>')" onkeydown="sendTabKey(this);keydowndeal(this)" onfocus="setTextBoxBg(this,'focus');onfocusdeal(this)" onblur="setTextBoxBg(this,'blur')" />
</td>
红色标记的为何不编译成数字,反而是<%=SearchListForm.EVENT_SEARCH_DRIVERNAME%>
知道原因的,或如何解决的,请多多指点.

------解决方案--------------------
在前面用<bean:define>定义这个变量,再使用就行了,
或者用<input type="text">代替<html:text>