On 3/5/06, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: > It seems to me that server side validation does not work with Struts 1.3 > > The getValudationKey > public String getValidationKey(ActionMapping mapping, HttpServletRequest > request) { > return mapping.getAtribute(); > } > > returns allways the action url : /Login > > instead of LoginForm.
The "Type Form" validator example in the struts-examples webapp uses the ValidatorForm and its working fine in Struts 1.3. Are you sure you're not using ValidatorActionForm rather than ValidatorForm? > I override this method to return mapping.getName() and now the method > returns LoginForm and the server side validation works. > > However all the validation fails with the following error in html:messages : > null is required. > > What is the null property ??? Looks like the message for the "required" validator and that you haven't defined an argument with the field's label in your validation.xml (e.g. "foo.label" ): <field property="foo" depends="required" > <arg key="foo.label" /> </field> ... or the value you have specified as the label is missin from your message resources. Niall --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]