Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

Posts: 63
  • Mark post as helpful
  • send pies
  • 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

moose poop looks like football shaped elk poop. About the size of this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!