This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1 - NullPointerException for saveError" Watch "Struts 1 - NullPointerException for saveError" New topic
Author

Struts 1 - NullPointerException for saveError

Felipe Brancaleone
Greenhorn

Joined: Nov 30, 2008
Posts: 3
Hi,

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".

Thank's

>> PROBLEM SOLVED <<
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: http://aspose.com/file-tools
 
subject: Struts 1 - NullPointerException for saveError