Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Spring MVC: How to handle to different command object for two different forms

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two jsp pages. On page 1, I enter the data and submit the form. I have set the command class and command name in bean definition and the same command name in jsp page. Same set up for jsp page 2. It has its own command class, command class name in bean definition and the same name in jsp. As i click SUBMIT on JSP 1, I am getting the following error

Error at the line <td><form:input path="userName"/> </td> of page 2
Neither BindingResult nor plain target object for bean name 'customerForm2' available as request attribute

Both the controllers extend SimpleFormController

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic