为什么Ajax+Struts2中不能将的参数提交啊
cpych 2008-11-04 08:22:58 只有当<s:select>中的只要添加了size 或 mutiple 等属性,在Action中就接不到这一节点的参数
例如:<s:select theme="simple"
multiple="true"
list="#{'':''}"
headerKey="headerKey"
headerValue="--- 请选择商品类别 ---"
name="left"
size="12"
id="left"></s:select>
在Action中利用ServletActionContext.getRequest().getParameterNames()就不会接到left这一参数
但是当:<s:select theme="simple"
list="#{'':''}"
headerKey="headerKey"
headerValue="--- 请选择商品类别 ---"
name="left"
id="left"></s:select>
在Action中利用ServletActionContext.getRequest().getParameterNames()就可以接到left这一参数