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 !!!!!*