那还不是一样的啊,加上onClick="fPopCalendar(date,date);return false"

解决方案 »

  1.   

    <html:text>好象没有这个onclick的属性吧
      

  2.   

    补充,如果你用myEclipse的话,You can see it's properties, then you can find events
      

  3.   

    改成小写的了,还是调不出来那个控件,另外我同时在同一页面又加了:<input type="text" name="date" id="date" onClick="fPopCalendar(date,date);return false" size="12"> 
    结果是,点击<html:text>的文本框,在<input >那个文本框上显示控件,而不是在<html:text>的文本框上显示控件.
    去掉<input>语句后,什么都显示不出来了by the way ,i am using myeclipse but i dont know how and where i could check the attributes of <html:text>
      

  4.   

    你的fPopCalendar(date,date);里面的date,date参数是不是就是这个文本框的名字或ID啊,
    如果那样
    <html:text styleClass="L_thinborder" id="date" property="date" size="35" onclick="fPopCalendar(date,date);return false;"/>
    注意是property不是name
      

  5.   

    谢谢zhh1981 
    date date 就是这个文本框的名字和ID,但是<html:text>里面没有id这个属性.
      

  6.   

    呵呵,是啊,有时候感觉struts的html标签不太灵活