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