Eclipse Tomcat Web JSP plug-in installation (figure) __jsp

Source: Internet
Author: User
Tags apache tomcat

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>



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.