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

struts一部分标签的用法

2012-08-29 
struts部分标签的用法bean:write nameTShenPiForm propertyreduce.enddate formatyyyy-MM-dd /

struts部分标签的用法

<bean:write name="TShenPiForm" property="reduce.enddate" format="yyyy-MM-dd" />

<bean:write? name="TShenPiForm" property="sbman" />1.第一种用法?<logic:iterate id="obj" name="depList">?
??????????<html:option value="${obj.id}">${obj.name}</html:option>???
</logic:iterate>?? 2.第二种用法首先是actionForm 里面有一个list 集合在后台已经form.setList(list);在页面上遍历<logic:iterate id="element" name="TCzYwsjZxxmxxForm" property="kmtj"?indexId="inx">
?????<tr property="id"/>"></logic:iterate>在用struts标签的时候应注意如下:
<html:form action="/xzyj/ggfwbps.TJ?method=query">?
<html:text name="taskForm" property="taskName" style/>
</html:form>
这里要写好action 里面的路径
另外 html:text 里面的 name 名称要和struts 配置文件里面的name 名称要一致。

热点排行