Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Help required in spring validation for the method parameters Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help required in spring validation for the method parameters

    I am finding a way as how can i use spring validation for the method parameters.
    something like this
    @NotNull("name" length=50)
    @NotNull("desc" length=100)
    public MyObject create (String name, String desc, String path)
                throws ServiceException {
     // some code
    But i am not able to figure out how the validation will happen and how can i throw my custom exception with the proper error code.

    Pls suggest ..