JSP中得request对象是系统提供的,你不用申明新的request对象,直接用就可以了。
你上面的错误不是request的错误,而是你的uri地址无效

解决方案 »

  1.   

    JSP中得request对象是系统提供的,你不用申明新的request对象 直接用xxx
      

  2.   

    request的用法在action中指定了,在页面上就能使用你出现这个错误肯定是你指定的forward页面不存在导致的,把你的xml配置文件贴出来看看吧
      

  3.   

    楼上各位好,我刚才试了,还是不行,我把详细情况再说一遍把:我在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">正确呢?(即用相对目录)
      

  4.   

    先保证你的action里面执行的没有问题,如果没有问题,然后再最好把action和struts-config的代码完整的帖出来看看