Spring mvc @ScriptAssert路径映射<;表格:错误>;

Spring mvc @ScriptAssert路径映射<;表格:错误>;,spring-mvc,validation,hibernate-validator,Spring Mvc,Validation,Hibernate Validator,我已经看到@ScriptAssert用于重复验证。比如说, @ScriptAssert( lang=“javascript”, script=“\u this.confirmPassword.equals(\u this.password)”, message=“account.password.mismatch.message”) 我知道在我的jsp文件中,我可以全局接收此错误消息以及所有其他错误,如下所示: 但是,我希望接收此特定的密码复制错误消息并将其显示在密码字段中,但是,我不知道

我已经看到@ScriptAssert用于重复验证。比如说,

@ScriptAssert(
lang=“javascript”,
script=“\u this.confirmPassword.equals(\u this.password)”,
message=“account.password.mismatch.message”)
我知道在我的jsp文件中,我可以全局接收此错误消息以及所有其他错误,如下所示:


但是,我希望接收此特定的密码复制错误消息并将其显示在密码字段中,但是,我不知道通过什么路径名可以检索此错误?例如,要通过用户名字段接收用户名错误,jsp如下所示:


…但是我们通过什么名称检索@ScriptAssert检查的密码错误,特别是当@ScriptAssert.List中有多个@ScriptAssert时

…它使用用户名作为路径名。我查看了其他论坛等,以查找@ScriptAssert的路径名或@ScriptAssert.List中每个@ScriptAssert的路径名,但找不到任何解决方案。任何帮助都将不胜感激

亲切问候,,
Jamie

尝试完全丢失
路径
属性,如下所示:

<form:errors htmlEscape="false" />

我看到表单:错误嵌套在另一个表单:错误中。你确定吗?