Export and deployment of Web projects

Source: Internet
Author: User

-----------------siwuxie095

Export of WEB projects

The engineering structure directory is as Follows:

Law One:

Click Project name myjsp, right-->export (->web)->war file

Specify the export path, named myjsp.war, which contains all the files for the Web application:

JSP, HTML, CSS, JavaScript, image files, and compiled class files

You can also check Export source files, exporting sources

Law Ii:

Exporting by using commands

Open CMD window, entering the current project Myjsp's webcontent directory,

input JAR-CVF Myjsp.war * (* All files representing the current Directory)

Deployment of WEB Projects

will be War files deployed to the Tomcat server:

put Myjsp.war Copy to WebApps of the Tomcat installation directory

Directory: D:\Java\Tomcat\webapps

if it is configured properly Tomcat Environment variable, It can be in the CMD window

Enter startup or Startup.bat directly to start Tomcat

"turn Tomcat off to enter shutdown or shutdown.bat"

or in the in the bin directory of the Tomcat installation directory, locate startup.bat, and double-click start Tomcat

the Close Tomcat Double-click the shutdown.bat"

Open the browser and type in the address bar (two options):

(1) localhost:8080/myjsp/test.jsp

(2) 127.0.0.1:8080/myjsp/test.jsp

At the same time, Myjsp.war will be decompressed (actually the contents of the WebContent Directory)

The JAR is the Java Archive file,war, which is the Web Archive file,ear Enterprise Archive File

All three in the file structure is actually a ZIP file, can be extracted by compression software

"made by siwuxie095"

Export and deployment of Web projects

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.