<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%>
知道原因的,或如何解决的,请多多指点.

解决方案 »

  1.   

    没有导入 SearchListForm ???
    或者用 EL 试试
      

  2.   

    没有编译是什么意思?在你写的代码里肯定是这个样子的啦。在运行的时候你查看页面源代码的时候不就能看到编译并生成的html代码了呀
      

  3.   

    就是红色的字体标记的,它没有编译成数字0,反而是<%=SearchListForm.EVENT_SEARCH_DRIVERNAME%>这样显示出来的.
      

  4.   

    目前搞定啦,主要是struts标签不支持" '<%=%>'"这样模式.
      

  5.   

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