首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

struts页面为什么不编译

2011-12-21 
struts页面为何不编译td nowraphtml:text propertytruckBean.driverName maxlength9 styleClass

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>

热点排行