You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jo...@canopyint.com on 2002/08/14 22:50:09 UTC

Unable to return error to jsp page

Hi,

I'm stuck... getting an error when the controller servlet is trying to
return my error to the jsp which issued the request. I am returning the
error directly from my Action servlet:

    System.out.println("Saving errors...");
    saveErrors(request,errors);
    System.out.println("Returning to: " + mapping.getInput());
    return new ActionForward(mapping.getInput());


My action mapping:

<action path="/viewPODocument"
     type="com.canopyint.app.rsvp.actions.PODocumentViewAction"
     input="/listPOInfo.jsp"
     name="poDocumentForm"
     scope="request">
     <forward name="success" path="/PODocumentView"/>
    </action>

Form beans:

<form-beans>
    <form-bean name="userProfileForm" type
="com.canopyint.app.rsvp.entity.UserProfile"/>
    <form-bean name="poDocumentForm" type
="com.canopyint.app.rsvp.entity.PODocument"/>
    <form-bean name="poInfoListForm" type
="com.canopyint.app.rsvp.entity.POInfo"/>
  </form-beans>

Error message:

javax.servlet.jsp.JspException: Cannot find bean poInfoList in scope
request
     at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
     at org.apache.jsp._0002flistPOInfo_jsp._jspService
(_0002flistPOInfo_jsp.java:112)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
     at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
     at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
     at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
     at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
     at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
     at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Thanks for your help.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>