Java Web program Creation

Source: Internet
Author: User

This article describes how to create your first Javaweb program in a simple way.

Take the lonely Wolf "file upload download" This javaweb as an example. The specific code for each file is shown in http://www.cnblogs.com/xdp-gacl/p/4200090.html. Thank you very much, aloof and pale wolf Introduction to File upload download this common program code! Himself is a little white, groping to get the steps to achieve this javaweb, share the following:

1 First, the jdk and Tomcat are configured in MyEclipse;

Tomcat Configuration method:window-preferences-servers-tomcat-tomcat 7.x(select installed version) to the right , select Enable, and the Tomcat Add the installation path, click OK.

2

A create a new Web project, named fileuploadanddownload, to create a new upload.jsp and Webroot under message.jsp

b new servlet in src ,package is me.gacl.web.controller, named Uploadhandleservlet. Then configure the Web. Xml.

after C code editing is complete, select the Deploy button

Project Select fileuploadanddownload,Add Tomcat7 Click OK

d Click the Server Run button

selected TOMCAT7 Start

e can be accessed by entering http://localhost:8080/FileUploadAndDownload/upload.jsp .

Java Web program Creation

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.