Installing to D:\tomcat 5.5, installing Tomcat 5.5 requires JRE 5.0, and if you do not automatically identify the path of the first installed jdk5.0 during installation, you need to manually specify the JRE5.0 path.
In Tomcat, add a new virtual directory test to D:\Tomcat 5.5\conf\catalina\localhost and add a Test.xml
The contents are as follows:
<context path= "/test" docbase= "D:/www" reloadable= "true" crosscontext= "true" debug= "0" >
</Context>
The d:\www path will be the root directory of our test site
Accessing through Http://localhost:8080/test in the browser
After decompression, copy the Mysql-connector-java-3.1.6-bin.jar to D:\Tomcat 5.5\common\lib or D:\Java\jdk1.5.0_01\jre\lib\ext or elsewhere ( You need to set the classpath to point to the path)
5. A new test.jsp
Save to D:\www
The contents are as follows:
<%@ page contenttype= "text/html;charset=gb2312"%>
<%@ page import= "java.sql.*"%>
<%
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.