aspose file tools*
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
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