-----------------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