Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validation in spring

 
Ashimashi Kabashi
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how does one show a validation error messages in spring one uses a jstl/core taglib
for example

now the problem is that my app server throws an exception

so I take that you cant do this <c ut value="${status.errorMessage}" />?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you even need the core out tag? Just use ${status.errorMessage} without it.
 
Ashimashi Kabashi
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its not working ... the form in not being submitted meaning the validation has executed but the error message does not show up.
this is my jsp


This is my validation code
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic