![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
xi290797176
这个作者很懒,什么都没留下…
展开
-
struts2总结
Action :1. 实现一个Action最简单的方法是 extends ActionSupport;2. DMI动态调用: Action里面的方法得在struts.xml里面加上,<constant name="struts.enable.DynamicMethodInvocation" value="true"/> 不知道哪个版本的struts默认是关闭的。3. ...原创 2019-01-04 17:39:08 · 246 阅读 · 0 评论 -
result总结
Result :1. <result type=" ? ">常用的4种类型:dispatcher(默认) 、redirect 、chain 、 redirectAction 2. global-result :多个package共享一个全局结果集需要extends 3. dynamic result : 页面发出一个请求,action里面接受并且设置一个变量 ,在&...原创 2019-01-04 17:38:58 · 346 阅读 · 0 评论 -
OGNL表达式总结
<ol><li>访问值栈中的action的普通属性: username = <s:property value="username"/> </li><li>访问值栈中对象的普通属性(get set方法):<s:property value="user.age"/> | <s:prope原创 2019-01-04 17:38:26 · 166 阅读 · 0 评论 -
OGNL总结
OGNL 总结: 1. 只有传参数,struts2才会自动帮你NEW,想要初始化也是可以自己NEW,需要保持空的构造方法。原创 2019-01-04 17:38:45 · 156 阅读 · 0 评论