随笔分类 -  Struts2

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
摘要:关闭连接后不允许任何操作。 Connection 静态是共享的 一个操作函数里尽量处理一个sql语句 阅读全文

posted @ 2018-05-05 09:27 Honey_Badger 阅读(400) 评论(0) 推荐(0) 编辑

Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee
摘要:双击 勾上蓝色保存 阅读全文

posted @ 2018-05-04 04:33 Honey_Badger 阅读(518) 评论(0) 推荐(0) 编辑

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext
摘要:struts包版本不对 用2.3的相应包 用在2.5里面了 例如 2.5里加上 阅读全文

posted @ 2018-05-04 04:14 Honey_Badger 阅读(501) 评论(0) 推荐(0) 编辑

The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global- results?,global-exception-mappings?,action*)".
摘要:报错 原因 action与result-type顺序搞错了 package里元素必须按照一定的顺序排列: result-types interceptors default-interceptor-ref default-action-ref default-class-ref global-res 阅读全文

posted @ 2017-09-19 17:57 Honey_Badger 阅读(515) 评论(0) 推荐(0) 编辑

Struts2.5学习笔记----org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter报错
摘要:Struts2.3升级到struts2.5后报错 颜色部分按照以下规则修改 新: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilterorg.apache.struts2.dispatcher.filter.Struts 阅读全文

posted @ 2017-03-09 02:49 Honey_Badger 阅读(6977) 评论(0) 推荐(1) 编辑

Struts 2.0全面分析
摘要:然后还要设置dojo的taglib 同样也需要对theme进行设置 上面的设置在head标签中。 然后使用sd:datetimepocker就可以实现了。 设置formatLength为long的datetimepicker标签 <s:datetimepicker toggleType="explo 阅读全文

posted @ 2016-11-18 21:35 Honey_Badger 阅读(329) 评论(0) 推荐(0) 编辑

struts2、jsp的简单路径的简单拦截
摘要:**************************************************************************************** 阅读全文

posted @ 2016-11-06 02:28 Honey_Badger 阅读(1226) 评论(0) 推荐(0) 编辑

ServletContext中常用方法介绍
摘要:一、.获取Tomcat的Context的初始化参数。1.获取Tomcat的server.xml中设置Context的初始化参数。例如: 方式:getServletContext().getInitParameter(String name)2.获取在项目下的web.xml中设置Context的初始化 阅读全文

posted @ 2016-11-04 14:40 Honey_Badger 阅读(453) 评论(0) 推荐(0) 编辑

ActionContext和ServletActionContext区别
摘要:1. ActionContext 在Struts2开发中,除了将请求参数自动设置到Action的字段中,我们往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServlet Http的请求(HttpServletRequest),响应( 阅读全文

posted @ 2016-11-04 14:30 Honey_Badger 阅读(391) 评论(0) 推荐(0) 编辑

ActionContext.getContext().getSession()
摘要:相当于jsp里 ************************************************************************************ 阅读全文

posted @ 2016-11-04 14:19 Honey_Badger 阅读(936) 评论(0) 推荐(0) 编辑

ActionSupport与action区别
摘要:action是接口,只有一个execute方法需要实现。ActionSupport是action接口的一个实现类。这个类除了实现action接口还实现了Validateable(用于验证)等接口,开发中常用功能都已有实现了 。推荐使用继承ActionSupport类。 1.实现Action 接口 ( 阅读全文

posted @ 2016-11-04 14:02 Honey_Badger 阅读(1550) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
github
点击右上角即可分享
微信分享提示