aspose file tools*
The moose likes Spring and the fly likes Neither BindingResult nor plain target object for bean name 'vids2m1' available as request attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Neither BindingResult nor plain target object for bean name Watch "Neither BindingResult nor plain target object for bean name New topic
Author

Neither BindingResult nor plain target object for bean name 'vids2m1' available as request attribute

vishalp pradhanp
Greenhorn

Joined: Aug 01, 2011
Posts: 10

Hi,I am new to spring framework,I have been developing a small application using SimpleFormController,but getting the subject line exception,I am trying this from 3-4 days but not get any idea,Please Help me.
Here is my controller class

My jsp page.
My dispatcher-servlet:
And my bean class:
Please help me,I tried so many ways....
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,
See here I think you'll seed to set the commandName to be the same as the command name that you have set in the Spring form in your jsp...

Sean


I love this place!
vishalp pradhanp
Greenhorn

Joined: Aug 01, 2011
Posts: 10

Yes Sean,
I had set the commandName as vids2m1 in spring form in my jsp and in my dispatcher-servlet also.
vishalp pradhanp
Greenhorn

Joined: Aug 01, 2011
Posts: 10

I am finding everything right,but exception is still there,please help to resolve this problem.
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Is this happening before you submit or after you submit?
Make the success page for the VIDS2M1Controller to be something else and not the same page...

Sean
Tommy Delson
Ranch Hand

Joined: Apr 13, 2011
Posts: 206
After couple minutes of review your codes I see the problems here, see below for
more info...hope it help.

It won't be a quick fix, you need a lot of work here in order to make it works.

Something like this I'd charge for a service....j/k. ..helping you solving problems I'm happy and good enough.





OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
vishalp pradhanp
Greenhorn

Joined: Aug 01, 2011
Posts: 10

First of all,
Thank you Tommy and sean for giving your precious time and tips,the problem gets solved.
I need to handle the next process,thats the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Neither BindingResult nor plain target object for bean name 'vids2m1' available as request attribute