Jsp + tomcat + Create project configuration project

Source: Internet
Author: User

Jsp + tomcat + Create project configuration project
*Now we have downloaded tomcat 7.0 + eclipse for java ee
Decompress the package directly and open eclipse.
Next step:
The interface opened by eclipse is empty !!!*

Click file> new> project> web> dynamic web project.

Project name Customization

* ** The project has been basically created. Now you can configure it. Use the tomcat we downloaded. ** click window-> preference-> server-> runtime enviroment, as shown in! [8] (http://img.blog.csdn.net/20160326025507987)

Click "add" to deploy the downloaded tomcat. The version is determined by your own download. My version is 7.0 ***

* ** Click browse to add the address after decompression of tomcat ***

*** Create a new JSP file and right-click the webcontent node to create

Click finish.*

The newly created jsp file will display an error. This is because the tomcat address is not added. Next, add it.

On the first node, right-click bulid path

The error message will be canceled after completion. Use html to write a test code.

* ** Deploy to container ***

Click the green button below to display the result.

Http: // localhost: 8080/first/NewFile. jsp

*This address is too difficult to input in the browser. We can simplify it:
Enter localhost only, or modify some places
First, the jsp file name must be index. jsp rather than others.
Then, change path to null and Port 8080 to 80.
The following figure shows the steps.*

*Now you can start writing code.
I wish you a pleasant learning experience.
(Ps: It's really tiring to write something like this. Baidu hasn't found the complete step for a long time. It was really tiring to install Mysql last night. )

To do this, you must first sharpen your tools !!!!!*

Related Article

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.