File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes NullPointerException when validate= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "NullPointerException when validate="true" in action mapping" Watch "NullPointerException when validate="true" in action mapping" New topic

NullPointerException when validate="true" in action mapping

Mathur Neni
Ranch Hand

Joined: May 10, 2004
Posts: 33
When I change the validate="true" from validate="false" in the action mapping in struts-config.xml, application is throwing NullPointerException as follows:
TilesRequestP I org.apache.struts.tiles.TilesRequestProcessor Tiles definition factory found for request processor ''.
WebGroup E SRVE0026E: [Servlet Error]-[action]: java.lang.NullPointerException
at org.apache.struts.validator.DynaValidatorForm.validate(
at org.apache.struts.action.RequestProcessor.processValidate(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
Is there any relation of validate="true" to Tiles/Menus?
Any guess, please?
Stan Sokolov
Ranch Hand

Joined: Apr 13, 2004
Posts: 120

You should add one more method to your form bean
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {

Good luck for yourself.
I agree. Here's the link:
subject: NullPointerException when validate="true" in action mapping
It's not a secret anymore!