可以打包成war发布,也可以直接拷贝上去就可以了,不过建议使用war包或ear包发布。

解决方案 »

  1.   

    建立工程后再建一个web application。
    然后把你的JSP文件放在web application所对应的目录下,就可以在JB中处理了。
      

  2.   

    这么说,我用到的jsp调用的bean都在web application里,是不是点右建选deploy就可以打包成war直接部署到weblogic? 就可以直接在浏览器访问了?weblogic自动解压吗?
      

  3.   

    在工程里添加JSP文件即可把JSP加入工程,在工程视图中右击鼠标菜单中有添加文件选项
      

  4.   

    1、只有新建一个工程才可以建jsp吗?
    对,jsp文件属于一个web应用,一个工程可以包含多个应用。
    2、我写好的jsp怎么引入一个工程里呢?我考到工程目录下的jsp都不能保存也不能修改,
    你可以添加,考到工程目录下也可以,然后refresh.3、写完之后怎么部署到weblogic呢?
    jb编译时会生成war文件。
      

  5.   

    服务器是weblogic
    我把生成test.war考到applications下
    用http://localhost/test访问不到为什么呢
      

  6.   

    用http://localhost:7001/test试一下先。
      

  7.   

    试了,但是不行
    Error 404--Not Found 
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.