楼上各位好,我刚才试了,还是不行,我把详细情况再说一遍把:我在weblogic的安装目录的DefaultWebApp目录下,有一个main.jsp文件,另外在DefaultWebApp/plan目录下有一个plan_all.jsp。 在jbuilder中,我把左边窗口的<Default Web App>目录下的Root directory的值设为weblogic的安装目录的DefaultWebApp目录, 然后,我想 (1)从main.jsp进入action,再转入plan_all.jsp, 在action中我用了return actionMapping.findForward("month_plan_all"); 在struts-config.xml中我定义了<forward name="month_plan_all" path="/plan/plan_all.jsp" />, 但是,转入plan_all.jsp的结果却是 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.或者是Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.5.1 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. (2)从main.jsp直接转入plan_all.jsp, 如在main.jsp中是用<a href ="/plan/plan_all.jsp">正确呢?(即映射到weblogic的安装目录的DefaultWebApp目录) 还是用<a href ="./plan/plan_all.jsp">正确呢?(即用相对目录)
在jbuilder中,我把左边窗口的<Default Web App>目录下的Root directory的值设为weblogic的安装目录的DefaultWebApp目录,
然后,我想
(1)从main.jsp进入action,再转入plan_all.jsp,
在action中我用了return actionMapping.findForward("month_plan_all");
在struts-config.xml中我定义了<forward name="month_plan_all" path="/plan/plan_all.jsp" />,
但是,转入plan_all.jsp的结果却是
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.或者是Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
(2)从main.jsp直接转入plan_all.jsp,
如在main.jsp中是用<a href ="/plan/plan_all.jsp">正确呢?(即映射到weblogic的安装目录的DefaultWebApp目录)
还是用<a href ="./plan/plan_all.jsp">正确呢?(即用相对目录)