ServletConfig对象
2012-04-27 16:33
281 查看
ServletConfig对象
http://hain.iteye.com/blog/70731
GenericServlet ( httpServlet 父类) 存在
private transient(不会被序列化到硬盘) ServletConfig config;
String value = getServletConfig().getInitParameter("name") ;
可以通过上述方法得到servlet中所配置的参数的值。
一般会配置编码格式 jdbc的链接静态参数
总结:
http://hain.iteye.com/blog/70731
GenericServlet ( httpServlet 父类) 存在
private transient(不会被序列化到硬盘) ServletConfig config;
String value = getServletConfig().getInitParameter("name") ;
可以通过上述方法得到servlet中所配置的参数的值。
一般会配置编码格式 jdbc的链接静态参数
总结:
相关文章推荐
- ServletConfig与ServletContext对象详解
- ServletConfig与ServletContext对象详解
- Servlet 2 (线程安全,配置对象ServletConfig)
- ServletConfig对象和它在开发中的应用场
- ServletConfig对象
- ServletConfig对象
- 12_ServletConfig对象
- servlet都有一个servletConfig对象;四个config对象可以调用的方法;ServletContext对象之获取web项目信息;设置全局初始化参数的配置
- servletconfig对象+servletcontext对象
- ServletConfig对象 【通过此对象获取到web.xml中的信息】
- Struts2的Action获取ServletConfig对象的解决方案
- Servlet概述以及ServletConfig 和ServletContext对象的作用
- ServletConfig和ServletContext对象
- Servlet中的重要对象——ServletConfig对象
- ServletContext和ServletConfig对象
- How Tomcat works之第十一章之The ServletConfig 对象
- mvc-servlet---ServletConfig与ServletContext对象详解(转载)
- Servlet的细节、ServletConfig对象、ServletContext对象及ServletContext应用
- Struts2的Action获取ServletConfig对象的解决方案
- 黑马程序员-Servlet的细节、ServletConfig对象、ServletContext对象及ServletContext应用