Results 1 to 3 of 3

Thread: Spring Exception Handling.

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Default 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. #2
    Join Date
    Jan 2011
    Location
    Kirovohrad, Ukraine
    Posts
    59

    Default

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

  3. #3
    Join Date
    Apr 2011
    Posts
    2

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •