EL表达式从strtus2的ValueStack中取值

* 在页面中使用el表达式如${param.username},相当于在后台程序(如Servlet)中调用request.getParameter("username");

* 编程中,在页面中使用el表达式,如 ${param.username} 也可以取到ValueStack中Property Name 为"username" 对应的Property Value;

* 通过查看源码, struts2的StrutsRequestWrapper类进一步封装了HttpServletRequest(接口);

* 通过以下博文可以更好的对此进行理解

  -> http://blog.csdn.net/u012427937/article/details/26281735

  -> http://www.tuicool.com/articles/bQzaEzI

 

                                                          我是光电侠, I am Flare 

 

posted @ 2017-07-28 09:24  IamFlare  阅读(530)  评论(0编辑  收藏  举报