aspose file tools
The moose likes Struts and the fly likes Struts 1 - NullPointerException for saveError Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts 1 - NullPointerException for saveError
 
Similar Threads
Confused on validate() method
New to struts, please help
pls answer this
Struts validation not working
Stumped !! HFSJ : Page 550 : Q3