为struts标签设定ID 标签属性 styleId
标签属性 styleId
那么在struts中用property="sDate"
<html:text property="sDate" styleClass="dd_text"></html:text>它直接翻译
成html为:<input type="text" name="sDate" class="dd_text"/>里面没有id.
可以采用:
<html:text property="sDate" styleId="sDate" styleClass="dd_text"></html:text>
这样就达到了我们的要求了。这个小知识点希望对大家有所帮助。
作者:COOL_CR 发表于2011-7-20 10:10:59 原文链接
阅读:4 评论:0 查看评论

浙公网安备 33010602011771号