Announcement Announcement Module
Collapse
No announcement yet.
Spring Exception Handling. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Exception Handling.

    Hello all,
    I`m having some difficult when trying to handle exceptions.

    in my case I have a form with a field with the type int.

    how can I handle the exception throw when the user type a non-int value such as a string in this field.

    PHP Code:
    price: <form:errors path="price" cssClass="error"></form:errors><br/>
    <
    form:input path="price" /><br/> 
    Thanks..

  • #2
    Please, see this post for a possible solution and explanation.

    Comment


    • #3
      That was solved

      yes, that i solved the problem
      just adding the org.springframework.context.support.ResourceBundle MessageSource
      bean in the dispatcher servlet config

      I created the messages.properties file
      and it worked fine.

      thanks

      Comment

      Working...
      X