摘要:
目录概要:1. 写出获取ServletContext的两种方式2.使用ServletContext实现两个Servlet数据共享3.设置ServletContext初始化参数,然后对其之。4. 编写一个转发5.通过ServletContext读取配置文件的内容。(使用两种方式)6.通过一般的java类读取配置文件的内容。原码:----------------------------------------------------------------------------------------一、写出获取ServletContext的两种方式package com.hbsi.contex 阅读全文
摘要:
目录概要:1. 写出获取ServletContext的两种方式2.使用ServletContext实现两个Servlet数据共享3.设置ServletContext初始化参数,然后对其之。4. 编写一个转发5.通过ServletContext读取配置文件的内容。(使用两种方式)6.通过一般的java类读取配置文件的内容。原码:----------------------------------------------------------------------------------------一、写出获取ServletContext的两种方式package com.hbsi.contex 阅读全文