You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by romanws <ro...@gmail.com> on 2007/12/06 14:39:22 UTC
Problem showing ExpressionValidator message
I have the following code for validation:
@Validations(
expressions = {
@ExpressionValidator (
key = "error.general",
message = "Default message for error.general",
expression = "nameLength gt 5")
}
)
public String submit() throws Exception {
return SUCCESS;
}
When the form is submitted the submit() method doesn't execute. The
validation is being done properly, the flow returns to the input page but
the error message is never shown.
Could somebody help me?
Thanks!
--
View this message in context: http://www.nabble.com/Problem-showing-ExpressionValidator-message-tf4956068.html#a14192369
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Problem showing ExpressionValidator message
Posted by Laurie Harper <la...@holoweb.net>.
romanws wrote:
> I have the following code for validation:
>
> @Validations(
> expressions = {
> @ExpressionValidator (
> key = "error.general",
> message = "Default message for error.general",
> expression = "nameLength gt 5")
> }
> )
> public String submit() throws Exception {
> return SUCCESS;
> }
>
> When the form is submitted the submit() method doesn't execute. The
> validation is being done properly, the flow returns to the input page but
> the error message is never shown.
> Could somebody help me?
> Thanks!
How are you attempting to show the error message? Does the input page
contain a form? Does it have an input bound to the nameLength property?
And what theme is it using?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org