7days

快乐工作,快乐生活!

随笔分类 -  servlet/jsp笔记

servlet/jsp 学习
tomcat 的Illegal access 故障
摘要:异常信息:Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purpos... 阅读全文

posted @ 2010-06-10 02:40 7days 阅读(2936) 评论(0) 推荐(0)

ServletConfig和ServletContext
摘要:1.ServletContext在整个web应用程序生命周期内存在,用来保存全局对象,整个web应用都可以使用其获取context参数。当启动服务器后,servlet容器将读取web.xml中配置的context参数,进行初始化工作。ServletContext可以获取该参数。比如我们可以配置编码信息供web程序使用。web.xml[代码]ReadEncoding.java读取context参数中... 阅读全文

posted @ 2010-06-07 23:10 7days 阅读(816) 评论(0) 推荐(0)