• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to handle Severity error level

 
gianluca gian
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, actually I'm using jsr 303 feature to validate user input and on jsp page I'm using Spring library to display error messages. This is my validator class:



on the jsp i'm displaying error messages with spring like:


I'm looking a way to set on the validator code, some king of "flag" that could bring to client side, the the error level severity information (error, warning, info), so that I could style messages on jsp with different colour (es. red for error level, blue for warning one). Could you please help me? thank you
 
gianluca gian
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, at the end I resolved in this way, inside validator:



and within jsp:



not sure if it is formally correct. Thnak u. Bye
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic