Hi all,
I've got a problem on show error messages on jsp using spring:bind.
The problem caused by there are more than one same name things on the same page, for example:
when the user leave the first "username" with blank, both the 2 "username" got the same errorr.Code:<form ...> <spring:bind path="command.userid"> <input type='text' name='${status.expression}' value='1'>"><c:out value="${status.errorMessage}"/> </spring:bind> <spring:bind path="command.username"> <input type='text' name='${status.expression}' value='name1'><c:out value="${status.errorMessage}"/> </spring:bind> <spring:bind path="command.userid"> <input type='text' name='${status.expression}' value='2'>"><c:out value="${status.errorMessage}"/> </spring:bind> <spring:bind path="command.username"> <input type='text' name='${status.expression}' value='name2'><c:out value="${status.errorMessage}"/> </spring:bind> <input type="submit" value="submit"> </form>
So anyone who can give me a solution how to show error on which has got error?


Reply With Quote