You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bill Blackmon <bi...@verizon.net> on 2002/08/10 00:58:17 UTC
servlet.findForward() null pointer exception question
Why would the following code throw a NullPointerException if the forward is
defined in the <global-forwards> section
of the struts-config.xml file if the jsp exists? I cannot get the
servlet.findForward() method to return any of the jsps
listed. Any ideas?
return (servlet.findForward(IConstants.FAILURE_KEY));
public static final String FAILURE_KEY = "Failure";
<global-forwards>
<forward name="SystemFailure" path="/systemError.jsp" />
<forward name="SessionTimeOut" path="/sessionTimeout.jsp" />
<forward name="Failure" path="/systemFailure.jsp" redirect="true" />
<forward name="EditMemberTwo" path="/memberTwo.jsp" />
</global-forwards>
java.lang.NullPointerException
at
com.egps.actions.EditMemberTwoAction.execute(EditMemberTwoAction.java:60)
at
com.egps.actions.EditMemberAction.execute(EditMemberAction.java:61)
Thanks,
Bill
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>