Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Validations bugs

Xavier Vanderstukken

2006-03-05

Replies:

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.

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 ???


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.