Hi Howecome you have validate="false"? If you want validation, then set it to true
Hermod -----Original Message----- From: Thibaut [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 11:41 AM To: user@struts.apache.org Subject: Validation Problem Hi I have all the time the same problem and there is a week i try to solve it. It should be trivial but i can't see. None of my validation work ! I now use Struts 1.2.8 with module. The application use to work with Struts 1.0. In the Struts-config.xml of the "user" module : <action path="/insertANewCandidate" type="com.cvdunet.controller.action.UpdateResponsesForRequestAction" input="missions_copyMailToBasket.jsp" name="candidateForm" scope="request" validate="false"> <forward name="success_from_tool" path="/close.jsp"/> <forward name="success" path="/mycv.jsp"/> </action> ... <controller pagePattern="$M$P" maxFileSize="2M" inputForward="true" /> <message-resources parameter="com.cvdunet.controller.ApplicationResources"/> In the action : CandidateForm candidateForm = (CandidateForm) form; ActionMessages errors = candidateForm.validate(); if (!errors.isEmpty()) { this.saveErrors(request, errors); return mapping.getInputForward(); } And in the form : public ActionMessages validate() { ActionMessages errors = new ActionMessages(); ActionMessage error = new ActionMessage(CandidateConstant.NO_BASKET); errors.add(ActionMessages.GLOBAL_MESSAGE, error); return errors; } Can anyone help ? Thank you -- Thibaut Lassalle --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]