
Sir i am getting stucked how to validate struts using action forms, the field vechicleNo should not be null and it should accept only integer values.can you help me please
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors actionErrors = new ActionErrors();
if (vechicleNo.equals(""))
{
actionErrors.add("vechicleNo", new ActionMessage("error.vechicleNo.required"));

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.