Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Seeing weird behavior with @ModelAttribute

Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Spring 3.0.5 and I have a controller method similar to the following:

MyFormBean has two constructors, one of which is not intended to be called:

This code is about two years old and has worked fine. Today, we were doing a deployment it was noticed that the no-arg version of MyFormBean was being invoked when going to /getAPage. Furthermore, we were unable to reproduce this problem in the QA environment or on my local Tomcat instance. All machines are running the same version of tomcat7 and are using the same JDK (1.7.0_51). The builds are made with the -source and -target flags set to 1.6 and with this release, we upgraded the production servers to 1.7.0_51.

Any ideas why this behavior might be happening?

Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic