随笔分类 -  stuts2

zrq struts in action konghao
摘要:3.1 Struts2的OGNL 1.OGNL表达式基础 标准的OGNL会设定一个根对象(root对象)。假设使用标准OGNL表达式来求值(不是Struts 2 OGNL),如果OGNL上下文有两个对象foo对象和bar对象,同时foo对象被设置为根对象(root),则利用下面的OGNL表达式求值。 #foo.blah // 返回foo.getBlah() #bar.... 阅读全文
posted @ 2015-03-18 22:16 elite_2012 阅读(215) 评论(0) 推荐(0)
摘要:5.1 拦截器概述 Struts 2框架内建了大量的拦截器,这些拦截器可以在Struts 2的配置文件struts-default.xml中查看。 Struts 2框架给出了这么多的拦截器,下面简要介绍它们的作用。 ... 阅读全文
posted @ 2015-03-17 16:19 elite_2012 阅读(187) 评论(0) 推荐(0)
摘要:1.建立一个webproject –>struts2 2.导入相应的jar包(可以参考blank项目) 3.配置web.xml login.jsp struts2 org.apache.struts2.dispatcher.FilterDispat... 阅读全文
posted @ 2015-03-15 21:20 elite_2012 阅读(297) 评论(0) 推荐(0)