File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 1 - NullPointerException for saveError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1 - NullPointerException for saveError" Watch "Struts 1 - NullPointerException for saveError" New topic

Struts 1 - NullPointerException for saveError

Felipe Brancaleone

Joined: Nov 30, 2008
Posts: 3

i'm using a Method to save my errors and return they in screen, in saveError(the method) i pass the parameters, mapping, request and a reference to the message that i want show(this reference is to a .properties file). When the line "return mapping.getInputForward();" is called, i receive a "Servlet.service() for servlet action threw exception java.lang.NullPointerException".


In my struts-config.xml, the tag input was not there, i just put this tag and play.
[ December 04, 2008: Message edited by: Jos´┐Ż Brancaleone ]
I agree. Here's the link:
subject: Struts 1 - NullPointerException for saveError
It's not a secret anymore!