`
dragon0929
  • 浏览: 76300 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

jsf getRequestParameterMap() & getRequestMap()

阅读更多

太晕了,一直以为这两个是同样的方法呢,今天在前台添加了参数<param, 用getRequestMap()死活得不到,才想到查查这两个方法的区别:与JSP的getParameter/getAttribute相同

 

FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); FacesContext.getCurrentInstance().getExternalContext().getRequestMap();

 

The first contains all request parameters which are set by the client. The server can get them but cannot change it.
The second contains all request attributes which are set/controlled by the server. The client has no control over it.

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics