Hello Reinhard, what will happen if the user calls the action from the jsp without entering any data? If you also get the exception something is wrong with your validate method.
Thursday, November 7, 2002, 3:27:43 PM, you wrote: RS> Hi all, RS> i was wondering how to handle correctly the following behaviour: RS> if a user calls directly from the url an action that has a Jsp in his RS> input and validate=true, i get a Nullpointerexception inside the RS> validate(). RS> I think that this happens because the FormBean has never been RS> initialized with the values from the Jsp (the jsp has not been RS> displayed). All values in the FormBean are nulls. RS> I have added an instruction at the beginning of the validate() that RS> checks if one of the text fields are null, the validate returns null. RS> Is there a better way to handle this? RS> Thanks RS> Reinhard RS> -- RS> To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> RS> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- Best regards, Dirk -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>