@ScriptAssert Path mapping <forms: errors>

I saw that @ScriptAssert is used to check for duplication. For instance,

@ScriptAssert(
  lang = "javascript",
  script = "_this.confirmPassword.equals(_this.password)",
  message = "account.password.mismatch.message")   

I know that in my jsp file I can get this error message globally along with all other errors as follows:

<form:errors path="*">   

However, I want to receive this error message with a duplicate password and display it in the password field, however I do not know how I can get this error? For example, to get the Username error from the Username field, jsp looks like this:

<div>
  <spring:message code="newUserRegistration.label.username" />
  <form:input path="username" cssClass="short"
  cssErrorClass="short error" />
</div>  

<form:errors path="username">
    <div><form:errors path="username" htmlEscape="false" /></div>
</form:errors>

... but by what name do we get a password error that is checked by @ScriptAssert, especially when there are several @ScriptAssert in @ ScriptAssert.List?

... . .., @ScriptAssert @ScriptAssert @ScriptAssert.List, . .

,

+3
1

path, :

<form:errors htmlEscape="false" />
+1

All Articles