1: Open the tab on Eclipse above help--Select Install New software
In the Install dialog box, enter "Jsp-http://download.eclipse.org/releases/juno" in work width.
The following figure selects the hook option "Web,xml,java EE and OSGi Enterprise DeveLopment;"
2: To ensure that there is a network, choose Next;
3: In the right engineering column, new project dynamic WebProject, create any available name works.
4: Right Key The project select Run as--run on Server
5: The first run of the project will let you choose which JDK, and what kind of service to use, here default to use the Workbench Derfult JRE, select Apache Tomcat
6: Successfully launched the project
Lose
7: Under the Web-inf to create web.xml files such as figure, so you can start to develop, it is worth noting that the modification of the project, start Tomcat, you need to press the F5 will be the JSP content will update changes.
<?xml version= "1.0" encoding= "UTF-8"?> <web-app xmlns:xsi=
"Http://www.w3.org/2001/XMLSchema-instance" "
xmlns=" Http://java.sun.com/xml/ns/javaee "xmlns:web=" http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd "
xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id= "webapp_id" version= "2.5" >
<servlet>
<servlet-name>zxing_uploadfile</ servlet-name>
<servlet-class>com.cn.myservlet.Zxing_UpLoadFile</servlet-class>
</ servlet>
<servlet-mapping>
<servlet-name>Zxing_UpLoadFile</servlet-name>
<url-pattern>/Zxing_UpLoadFile</url-pattern>
</servlet-mapping>
</web-app>