struts2_二级联动菜单大综合.docVIP

  • 1
  • 0
  • 约4万字
  • 约 35页
  • 2017-11-24 发布于河南
  • 举报
struts2_二级联动菜单大综合

%@ taglib prefix=”s” uri=”/struts-tags” % %@ page language=”java” errorPage=”/error.jsp” pageEncoding=”GBK” contentType=”text/html;charset=GBK” % html head titleStruts 2 Cool Tags - s:doubeselect/ /title s:head / /head body h2Doubleselect Tag Example/h2 s:form action=”doubleSelectPost” name=”form1〃 Doubleselect演示1 s:set name=”technology” value=”#{ ‘Java’: {’Spring’, ‘Hibernate’, ‘Struts 2′}, ‘.Net’: {’Linq’, ‘ ASP.NET 2.0′}, ‘Database’: {’Oracle’, ‘SQL Server’, ‘DB2′, ‘MySQL’} }” / s:doubleselect label=”技术选择” list=”#technology.keySet()” name=”doubleselect1〃 doubleName=”techdetail” formName=”form1〃 doubleList=”#technology[top]” / br/br/ Doubleselect演示数据演示2: s:set name=”mymap” value=”#request.map”/ s:doubleselect list=”#request.map.keySet()” doubleName=”mymap1〃 name=”doubleselect2〃 formName=”form1〃 doubleList=”#request.map[top]” label=”Map Test” / s:submit/ /s:form /body /html doubleselectpost.jsp %@ taglib prefix=“s” uri=“/struts-tags” % %@ page language=“java” errorPage=“/error.jsp” pageEncoding=“GBK” contentType=“text/html;charset=GBK” % html head titleStruts 2 Cool Tags - s:doubeselect/ /title s:head / /head body h2Doubleselect Tag Example/h2 s:form name=“form1〃 table border=“0〃 cellspacing=“0〃 cellpadding=“1〃 tr th参数值/th /tr s:iterator value=“#request.map.keySet()” status=“keys” tr tds:property//td /tr /s:iterator /s:form /body /html 3、struts.xml配置文件 action name=”doubleSelectTest” method=”doubleSelectTest” class=”com.mobilesoft.esales.webapp.action.DoubleListAction” result name=”success”test/doubleselect.jsp/result /action action name=”doubleSelectPost” method=”doubleSelectPost” class=”com.mobilesoft.esales.webapp.action.DoubleListAction” result name=”success”test/doubleselectpost.jsp/result /action 4、级联下拉框间的换行br 问题 缺省情况下,两个级联下拉框间是换行的,Struts2采用Freemarker来做模板,可以通过修改模板来定制标签缺省的树形。参看“Struts2中Datetimepicker控

文档评论(0)

1亿VIP精品文档

相关文档