Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1 - NullPointerException for saveError

Felipe Brancaleone
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic