如果是Tomcat的话直接拷贝到{tomcat}\webapps下即可http://localhost:8080/{war文件名}即可访问,war文件名不需要加扩展名http://www.javayou.com

解决方案 »

  1.   

    war包含了web应用程序的全部组件,直接导入即可使用
      

  2.   

    直接导入不行啊!出现如下错误信息:
    Welcome!
    To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.)
      

  3.   

    直接拷贝到webapp下,运行后会自动解压缩war包的
      

  4.   

    war放到tomcat}\webapps下会自动解压为war的文件名一个目录,其实它就是一个压缩文件,
    aa.war->aa.jar然后用winrar解压就是一个目录了里面是文件。