request.getParameterMap() 怎么用???
解决方案 »
- 请问数据库的驱动包在哪下载
- spring+hibernate 框架下使用uuid.hex的疑惑
- JavaEE5错误:java.io.IOException: Mismatched serialization UIDs : Source (............),Target(.........)
- 业务流程建模
- 求一SSH+mysql购物网站源码
- jforum求大神
- 求Spring 框架的缺点
- 请问有没有中文的jmx服务器,哪位高手肯提供一下?!!!!!
- 高手请进:j2dk+tomcat数据库连接问题
- 在Tomcat中Include html文件时,如果该html文件有中文则产生乱码,怎么办?
- 关于HttpServlet抽象类
- 新手求教:关于类的问题!!谢谢!!(抱歉只剩30分,全给了)
他传过去之后 只穿value啊
中间的aaa得不到吧
如有更多请发邮件到JJinTao——[email protected]交流
就可以了啊
你的表单提交后 下拉列表只会传一个value啊
而显示值“aaa”应该可以用一个隐藏域来取得:
如:
<input type='hidden' name='selectDisplay' id ='selectDisplay' >
在选择下拉列表时触发它的onchange事件,把"aaa" 赋给隐藏域'selectDisplay' ,
、这样就可以在后台用request.getParmeter("selectDisplay");得到了!
你试试,应该可以,不过比较麻烦!request.getParmeterMap()是取不到的,呵呵以下是这个方法的解释:
Returns:
an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
request.getParameter(下拉列表名字)