Re: Struts 2.0.6 and Validation

2007-03-15 Thread Hardy Ferentschik
Now it works. Thanks a lot. > @ExpressionValidator(expression="(searchParam.keywords > != '') && (searchParam.location != '')", message="Need > keywords and location.") I think there were several problems. First of all my OGNL syntax. I believe the documentation regarding this topic is

Re: Struts 2.0.6 and Validation

2007-03-14 Thread Dave Newton
--- Hardy Ferentschik wrote: > @Validations( > expressions = { > @ExpressionValidator( > expression = > "searchParam.keywords ne null and > searchParam.location ne null" message > = "Wrong search parameters") > } Btw, I haven't tested this yet, but I suspect you wouldn'

Re: Struts 2.0.6 and Validation

2007-03-14 Thread Dave Newton
--- Hardy Ferentschik wrote: > Currently I get the following error: > No result defined for action SearchAction and result > input If validation fails the framework will try to bring you back to the "input" result. You don't appear to have one; this will cause a problem. > validation on 'complex

Struts 2.0.6 and Validation

2007-03-14 Thread Hardy Ferentschik
Hi there, I am trying to get validation going for my application and so far nothing works. I would like to use annotations. Here is what I try to do: package ... import ... @Results({ @Result(name = "success", value = "/jsp/hitlist.jsp"), // value = "hitlist.action", type = ServletAct