at the same directory as 'WEB-INF':jar cvf yourFile.war *

解决方案 »

  1.   

    这样的话web.xml文件还是不知如何配置呀比如,我怎么指定这个web程序的首页是哪个文件呢?
      

  2.   

    <welcome-file-list>
    <welcome-file>web的首页</welcome-file>
    </welcome-file-list>
      

  3.   

    服务器不可能会自动配置你的web.xml文件的。
      

  4.   

    把配置好的web.xml文件也打进去不就OK了,war文件不就是包括WEB-INF{web.xml classes}的zip包吗!
      

  5.   

    请问在做好一个工程后怎样在jb里打成war包呢?
      

  6.   

    <welcome-file-list>
    <welcome-file>web的首页</welcome-file>
    </welcome-file-list>这个首页的路径该怎么写呢?? 比如首页在这个bbs目录下的jsp目录下
      

  7.   

    类似这种写法
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
      

  8.   

    在JB中,工程文件下见一个WEB APPLICATION,选择属性,打包。WAR,直接放到WEBAPPS下