struts 框架

struts 技术精髓

Struts 标签

html:setProperty

将对象的属性设置为另一个对象的属性。

<jsp:setProperty property="PJ_ID" name="pj" value="${html.PJ_ID}"/>

将对象的属性设置为传递参数值。

<jsp:setProperty property="SEKKE_ID" name="html" param="SEKKE_ID"/>

html:optionsCollection

生成一系列下拉列表的选项。

<html:optionsCollection name="bus" property="MOrgBus" label="BU_NAME" value="BU_C"/>
 
   
name 对象名称
property 对象属性名, 值为数组类型
label 数组中对象的属性名, 用来作为选项文本
value 数组中对象的属性名, 用来作为选项值