• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

reply
    Bookmark Topic Watch Topic
  • New Topic