Posted on 2008-07-29 22:21
∪∩BUG 阅读(286)
评论(0) 编辑 收藏 所属分类:
JSP学习笔记
JSP笔记
2008 05 05
一.系统环境变量的配置:
新建:
变量名:JAVA_HOME
值:E:\Program File\Java\jdk1.6.0_03 //JDK的主目录
变量名:CATALINA_BASE
值:D:\Program Files\Apache Software Foundation\Tomcat 5.0 //TOMCAT主目录
变量名:CATALINA_HOME
值:D:\Program Files\Apache Software Foundation\Tomcat 5.0 //TOMCAT主目录
变量名:SQL_DRIVER
值:E:\Program File\Microsoft SQL Server 2000 Driver for JDBC //SQL驱动主目录
变量名:classpath //包含SQL,JDK,TOMCAT
值:
(1).;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;%CATALINA_HOME%\common\lib\jsp-api.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar
(2).;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\htmlconverter.jar;%JAVA_HOME%\lib\jconsole.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;%CATALINA_HOME%\common\lib\jsp-api.jar;e:\Program File\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;e:\Program File\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;e:\Program File\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar
(3).;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\htmlconverter.jar;%JAVA_HOME%\lib\jconsole.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;%CATALINA_HOME%\common\lib\jsp-api.jar;%SQL_DRIVER%\lib\msbase.jar;%SQL_DRIVER%\lib\mssqlserver.jar;%SQL_DRIVER%\lib\msutil.jar
变量名:Path
值:SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Program Files\Microsoft SQL Server\80\Tools\BINN;%JAVA_HOME%\bin
二.所建的JSP主文件夹myjsp要放在:D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps
在D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\myjsp必须建一个文件名为:WEB-INF文件夹
三.启动测试Tomcat时,先运行Monitor Tomcat再到D:\Program Files\Apache Software Foundation\Tomcat 5.0\bin运行startup.bat
接着到地址栏输入http://localhost:8080
!!!erro 500之一
D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib 的目录
2008-06-10 17:19 <DIR> .
2008-06-10 17:19 <DIR> ..
2004-08-29 08:02 8,412 ant-launcher.jar
2004-08-29 08:02 958,858 ant.jar
2004-08-29 08:02 559,366 commons-collections-3.1.jar
2004-08-29 08:02 107,631 commons-dbcp-1.2.1.jar
2004-08-29 08:02 112,341 commons-el.jar
2004-08-29 08:02 42,492 commons-pool-1.2.jar
2004-08-29 08:02 351,903 jasper-compiler.jar
2004-08-29 08:02 105,502 jasper-runtime.jar
2004-08-29 08:02 50,491 jsp-api.jar
2004-08-29 08:02 27,968 naming-common.jar
2004-08-29 08:02 14,870 naming-factory.jar
2004-08-29 08:02 2,059 naming-java.jar
2004-08-29 08:02 42,308 naming-resources.jar
2004-08-29 08:02 97,689 servlet-api.jar
2007-09-25 01:11 12,171,847 tools.jar
15 个文件 14,653,737 字节
1JSP笔记
2
32008 05 12
4一.关于打开http://localhost:8080/显示空白页面的解决办法
5 今天netbeans与tomcat发生了冲突.导致打开http://localhost:8080/显示空白页面.可以先卸载了netbeans再卸载tomcat后重新安装来解决的.
6 不过可以用以下的办法来打开例子.
7 1.地址栏:http://localhost:8080/StudMS/ (StudMS是我的例子)可以打开我们正在使用的例子.
8 2.地址栏:http://localhost:8080/manager/html 可以打开到tomcat5.0/webapps下的例子目录.就是平常的Tomcat Web Application Manager 页面.这时可以打开想打开的例子.