往事如烟 发表于 2006-3-13 23:45:40

用Struct实现下拉列表框和复选框

<P ><FONT face="Times New Roman"> 1</FONT>、封装所有下拉框中的内容到集合中。</P>
<P ><FONT face="Times New Roman">       2</FONT>、封装所有用户的信息,因为用户信息中包含下拉框中的内容。</P>
<P ><FONT face="Times New Roman"> <o:p></o:p></FONT></P>
<P >添加时用:</P>
<P ><FONT face="Times New Roman">&lt;tr&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;td height="8" class="tr_col01" colspan="2"&gt;</FONT></P>
<P ><FONT face="Times New Roman">      &lt;div align="center"&gt;</FONT>现从事何种工作<FONT face="Times New Roman">&lt;/div&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;/td&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;td height="8" class="tr_col02" colspan="4"&gt;</FONT></P>
<P ><FONT face="Times New Roman">         &lt;select name="jishugongzuo" size="1" class="shuru"&gt;</FONT></P>
<P ><FONT face="Times New Roman">               &lt;logic:notEmpty name="fencemuluList" scope="request"&gt;&gt;</FONT></P>
<P ><FONT face="Times New Roman">            &lt;logic:iterate name='fencemuluList' id='fencemuluList' scope='request'&gt;</FONT></P>
<P ><FONT face="Times New Roman">                &lt;option value=&lt;bean:write name="fencemuluList" property="id"/&gt;&gt;</FONT></P>
<P ><FONT face="Times New Roman">                &lt;bean:write name="fencemuluList" property="zyname"/&gt;&lt;/option&gt;</FONT></P>
<P ><FONT face="Times New Roman">            &lt;/logic:iterate&gt;</FONT></P>
<P ><FONT face="Times New Roman">            &lt;/logic:notEmpty&gt;</FONT></P>
<P ><FONT face="Times New Roman">      &lt;/select&gt;</FONT></P>
<P ><FONT face="Times New Roman">    &lt;/td&gt;</FONT></P>
<P ><FONT face="Times New Roman">&lt;/tr&gt;</FONT></P>
<P ><FONT face="Times New Roman"> <o:p></o:p></FONT></P>
<P >修改时用:</P>
<P ><FONT face="Times New Roman">       &lt;html:select property="formbeanProperty_ID"&gt;</FONT></P>
<P ><FONT face="Times New Roman">         &lt;html:options collection="BEAN_LIST" property="BEAN_LIST_ID" labelProperty=" BEAN_LIST _Name"/&gt; </FONT></P>
<P ><FONT face="Times New Roman">       &lt;/html:select&gt;</FONT></P>

香耐儿 发表于 2009-4-10 09:28:27

楼主你太有才了......

楼主你太有才了......















http://www.domain.cn/club/images/default/sigline.gif
古之立大事者,不惟有超世之才,亦必有坚忍不拔之志。---魔兽剑圣异界纵横
小游戏 极品家丁 龙蛇演义 恶魔法则 飞升之后 异界枪神 凡人修仙传 魔兽领主 超级农民 成人小游戏 极品公子
页: [1]
查看完整版本: 用Struct实现下拉列表框和复选框