I. Tomcat site deployment
 
How can I associate the access address with the folder where the webpage is stored locally? It is actually very simple.
 
For example, I put the webpage file under the D: \ website directory and want to access the webpage file under the local address http: // localhost: 8080/mytest.
 
 
Create an extension name under the Tomcat \ conf \ Catalina \ localhost directory. XML file, the file name can be any, but it is recommended to be called "mytest", consistent with the address to be accessed, easy to manage.
 
Write the following code into the mytest. xml file:
 
<Context Path = "/mytest" docbase = "D: \ Website"/>
 
Note that the front slash is a backslash.
 
 
2. Set the JSP execution environment in Dreamweaver
 
To directly view the JSP display effect by pressing F12 in Dreamweaver, you need to set the JSP execution environment in Dreamweaver.
 
Select site-new site-advanced
 
Select "Local Information" on the left for configuration.
 
Site name: Just name it
 
Local root folder: Enter the local directory for storing the site
 
HTTP address: http: // localhost: 8080/mytest/
 
Localhost: 8080 is the default configuration of Tomcat. Mytest is the location of the site you deployed in Tomcat.
 
 
 
Select "test server" for configuration.
 
Server Model: JSP
 
Access: Local/Network
 
Test server Folder: enter your site directory
 
URL prefix: Same as the address in the HTTP address.
 
 
 
After entering the information, click OK to create the site.
 
Create a webpage file in the store on this site and press F12 to display it directly. Of course, don't forget to open Tomcat before debugging the webpage!