This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Spring and the fly likes Problem with validation example Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Problem with validation example" Watch "Problem with validation example" New topic
Author

Problem with validation example

Gourav Bansal
Greenhorn

Joined: Jun 27, 2010
Posts: 18
hi

i am trying to create an validation example but not able to do. please help







please help
Gourav Bansal
Greenhorn

Joined: Jun 27, 2010
Posts: 18
I tried to resolve it and done some modification in the code and i succeed in doing validation part but not able to show the error.

Here is the changed code



here when i hit the first request the new registration page open and if i fill the information it will take me to the other page (showInformation).
But in case of any error(field are blank) then the result.hasError return true and the method return NewRegistrationPageView.

On the JSP page i got


here is my JSP code where this error come



I am using here command class in the form tag. I believe when i request this page first time i put the command class in the modelMap field but second request won't pass the existing modelmap attribute.

please help
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with validation example
 
Similar Threads
Spring MVC : {beanName.property} not working
Not able to Validate form using JSR-303 validation implementation in Spring MVC
Getting the below error when doing formvalidation in spring
HandleRequestInternal is not called in spring
AOP Not working with Spring 3 MVC application