struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John.Fairba...@canopyint.com
Subject Unable to return error to jsp page
Date Wed, 14 Aug 2002 20:50:09 GMT
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:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message