<select name='sel' mutiple=true>
...
</select>
直接提交到后台,返回一个字符数组
...
</select>
直接提交到后台,返回一个字符数组
解决方案 »
- jasperreports +struts2数据库连接关闭问题
- openldap+LdapBrowser配置连接问题
- struts1.3 form里面修改了getter方法,给我报No bean specified
- struts中<bean:message key=" " />问题
- java 项目发布的问题
- 求 用STRUTS 怎样拆分MARC 码克数据
- 奇怪,web.xml里放多个struts-config.xml的问题:把多个struts-config用','放一起没有问题,如果用分开就只载入一个struts-c
- Help,部署时找不到给ejb方法做参数的Struts的ActionForm类
- tomcat 起不来,请看错误信息:
- 用Jbuilder开发EJB负载均衡的菜鸟问题,大侠来拿分
- struts架构中的国际化问题
- 哪位兄台了解国信朗讯公司
<tr bgcolor="#C8DAEC">
<td>
<bean:define id="services" name="servicecatalogForm"/>
<html:select property="leftselectedvalue" multiple="multiple">
<html:options collection="services"
property="unselservicesvalue"
labelProperty="unselserviceslabel"/>
</html:select>
</td>
<html:form name="ServiceLocationForm" action="ServiceLocationAction.do" >
<td> <html:button value="增加 " property="addservice" />
<br> <html:button value="删除 " property="delservice" />
<html:submit value="配置服务" property="Configuration" />
<html:reset value="重 置" property="Reset"/>
</td> <td>
<bean:define id="services" name="servicecatalogForm"/>
<html:select multiple="multiple" property="selservicesvalue" size="8">
<html:option value="">选择以下类别</html:option>
<html:options collection="services" property="pastservicesvalue" labelProperty="pastservcieslabel" />
</html:select>
</td>
</html:form>
</tr>页面中最初两列表值从servicecatalogForm中得到,当点“增加”/“删除”按钮时,左侧服务被选中项目会移到右侧并减少,右侧列表自动增加该服务/或反之,这里我拿不准,是通过javascript实现,还是提交到action中去实现,最后点击“配置服务”将整个页面提交到ServiceLocationAction中处理