Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vishalp pradhanp
Greenhorn
Posts: 10
Java MS IE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
vishalp pradhanp
Greenhorn
Posts: 10
Java MS IE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Sean,
I had set the commandName as vids2m1 in spring form in my jsp and in my dispatcher-servlet also.
 
vishalp pradhanp
Greenhorn
Posts: 10
Java MS IE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am finding everything right,but exception is still there,please help to resolve this problem.
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
vishalp pradhanp
Greenhorn
Posts: 10
Java MS IE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic