Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design 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