摘要:
转自:ServletContextAware、ServletRequestAware、ServletResponseAware、SessionAware Struts 2提供了Aware接口。Aware为"感知"的意思,实现了相关Aware接口的Action能够感知相应的资源。Struts在实例化一 阅读全文
posted @ 2017-10-24 16:49
Sharpest
阅读(564)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/bao19901210/article/details/23370407 1.需要在web.xml中配置相关信息 1 <!-- 默认的错误处理页面 --> 2 <error-page> 3 <error-code>403</error-code> 4 阅读全文
posted @ 2017-10-24 16:39
Sharpest
阅读(394)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/zhaozheng7758/article/details/6103700 在 Servlet API 中有一个 ServletContextListener 接口,它能够监听 ServletContext 对象的生命周期,实际上就是监听 Web 应 阅读全文
posted @ 2017-10-24 16:13
Sharpest
阅读(5677)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/xxujia/article/details/81435128 一、第一种定义方式,继承Exception类public class MyFirstException extends Exception {public MyFirstExceptio 阅读全文
posted @ 2017-10-24 15:59
Sharpest
阅读(183)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/zxc123e/article/details/51499652 阅读全文
posted @ 2017-10-24 15:48
Sharpest
阅读(205)
评论(0)
推荐(0)
摘要:
转自:https://www.aliyun.com/jiaocheng/1311989.html 首先先看一下代码: 需要在< tx:advice >标签内设置id和transaction-manager属性,id为advice bean的标识,transaction-manager则必须引用一个P 阅读全文
posted @ 2017-10-24 15:15
Sharpest
阅读(467)
评论(0)
推荐(0)
摘要:
转自:https://www.cnblogs.com/blogonfly/articles/3991782.html 参考: OpenSessionInViewFilter作用及配置:http://www.yybean.com/opensessioninviewfilter-role-and-con 阅读全文
posted @ 2017-10-24 15:03
Sharpest
阅读(346)
评论(0)
推荐(0)
摘要:
转自:https://www.cnblogs.com/fanyong/p/3883670.html jQuery是经常使用的一个开源js框架,其中的$.ajax请求中有一个beforeSend方法,用于在向服务器发送请求前执行一些动作。 具体可参考jQuery官方文档:http://api.jque 阅读全文
posted @ 2017-10-24 11:56
Sharpest
阅读(11598)
评论(0)
推荐(0)
摘要:
转自:https://www.cnblogs.com/lxl57610/p/7426326.html window.location.href、location.href是本页面跳转 parent.location.href是上一层页面跳转 top.location.href是最外层的页面跳转 to 阅读全文
posted @ 2017-10-24 11:43
Sharpest
阅读(685)
评论(0)
推荐(0)
摘要:
转自:https://www.aliyun.com/jiaocheng/1339446.html 用dom4j解析xml文件并执行增删改查操作 阅读全文
posted @ 2017-10-24 10:56
Sharpest
阅读(744)
评论(0)
推荐(0)