• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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

 
Greenhorn
Posts: 10
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Rancher
Posts: 377
Android Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MS IE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic