Servlet tips --init(), destroy() and retrieving information
来源:互联网 发布:最新网络赚钱项目 编辑:程序博客网 时间:2024/05/18 01:28
1. CGI Evnironment Variable: request.getXxx..
2. get initiial parameter: ServlietConfig.getInitParameter(para_name);//parameter in web.xml
3. init() is guaranteed to be called and completed before the servlet handles its first request: when the server starts, when the servlet is first requested but before the service() is invoked, when at the request of the server administrator
4. in the destroy() method, a servlet should free any resources it has acquired that will not be garbage collected. and it also gives a servlet a chance to write out its unsaved cached information or any persistent information that should be read during the next call to init(). If the server crashed, destroy() may not work.
5. getParameter(..): get request parameters as part of its query string(GET) or as encoded POST data. (and there is getParameterValues(..) for the parameter which has more than 1 value. (Begin with Servlet API 2.2, you can use same parameter in query string and POST valus, then use getParameterValues(..).
6. getRequestURL, getRequestURI and so on
- Servlet tips --init(), destroy() and retrieving information
- servlet 生命周期 init destroy 调用
- Servlet tips --sending HTML information
- Information Retrieving
- Servlet的生命周期,及init,service,destroy方法
- Spring(7)-Spring init-method and destroy-method example
- Retrieving File Information
- Retrieving File Information
- 《Training:Retrieving File Information》
- jsp servlet tips and articles
- 关于javax.servlet.Servlet接口的init方法和destroy方法
- openssl init destroy
- Retrieving product information in Magento
- iOS and OS X Network Programming Cookbook |Retrieving network address information
- Servlet的几个方法介绍(init() 、service()、doGet() 、doPost()、destroy()、getServletConfig()、getServletInfo())
- 2014-3-4 destroy,init
- 2014-3-4 destroy,init
- Spring init-method destroy-method
- java代码编写的30条建意
- 软件开发中的测试方法
- [原创]VC实现Base64编码范例
- 访问被拒绝。未能开始监视文件更改。
- VB ADO 用二进制方式来读写文件 入数据库 __________请参考(把文件(包括图片)存入数据库)
- Servlet tips --init(), destroy() and retrieving information
- 学习笔记之其它
- ftp 多线程下载的设计与实现
- 课程设计(2006.4.19草稿)
- 看看 Vista 的标志
- 我的Struts+Spring+Hibernate 框架
- 一个安全批处理文件
- Java与XML联合编程之DOM篇
- oracle to_char 用法