Tomcat site deployment/configuration home page, Dreamweaver setting JSP execution environment

Source: Internet
Author: User

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!

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.