1、配置自已的JSP文件夹步骤配置自已的JSP文件夹步骤: (1)在某磁盘如C:上建立一个文件夹; (2)修改Tomcatconf下的主配置文件server.xml, 用查找功能找到 (3)在和之间插入以下文字: 插后为: . . (4)存盘后必须重新启动Tomcat引擎。这样,就可以将JSP页面存放到C:abc内,用户可以通过虚拟目录abc访问JSP页面,或者将JSP页面存放到D:/sun内,用户可以通过虚拟目录xyz321访问JSP页面, 比如,在浏览器地址栏中键入http:/localhost:8888/abc/aaa.jsp 或者浏览器地址栏中键入http:/localhost:8888/
2、xyz321/bbb.jsp 当客户经过上面的Web服务目录的JSP页面后,服务器的 Tomcatjakart 4.1workStandalonelocalhost会出现abc子目录或xyz321子目录,子目录中存放了JSP页面对应的java文件和java文件的字节码文件。Server.xml factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml !- - !- - !- - !- - !- - !- The request dumper valve dumps us
3、eful debugging information about the request headers and cookies that were received, and the response headers and cookies that were sent, for all requests received by this instance of Tomcat. If you care only about requests to a particular virtual host, or a particular application, nest this element
4、 inside the corresponding or entry instead. For a similar mechanism that is portable to all Servlet 2.3 containers, check out the RequestDumperFilter Filter in the example application (the source for this filter may be found in $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters). Request dumpin
5、g is disabled by default. Uncomment the following element to enable it. - !- - !- - !- - !- - !- - !- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource protected by a security constraint,
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1