Moving a previously written blog "2014-12-10 22:41" The previous blog spoke about the Tomcat environment and started the first "Hello JSP" program.
Server environment set up, we began to write their own website, here simply write a no background program display "Hello JSP" site:
1. Locate the Tomcat installation directory, such as D:\Apache software Foundation\tomcat 6.0\, and go to the \webapps\root directory to find Web-inf and copy it to any place on your computer, such as
2. In this directory, create a new TXT file, enter the Hello JSP, and then rename it to hellojsp.jsp. 3. Then locate the Server.xml in the Conf in the Tomcat installation directory, add the phrase in the location shown, where path represents the virtual path at the time of the visit, and then access the localhost/hellojsp. Docbase represents the directory in which you wrote the page (i.e. the directory where Web-inf and hellojsp.jsp are located), and I wrote the hellojsp in the directory just below D:\Java\hellojsp\ so, after modifying D:\Java\ hellojsp\web-inf\ under Web. XML, as shown in, add the following code:
Restart the tomcat server after saving, open the browser at this time, the address bar input http://localhost/hellojsp/can access your first Hello JSP program.
Javaweb development of the second JSP + Tomcat First program "Hello World"