• 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

SimpleFormController deprecated

Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Earlier I asked a question -- Does Spring evolution support mixture of XML configuration (older version) and annotation based (newer).  And I think I got answer  YES from people, some even said XML config overrides annotation if there is conflict.  Now I find for some older Spring code that use "SimpleFormController" and XML config it is no longer supported after Spring 3.x.   The compilation complains about @SImpleFormController not found..   So I have to use @Controller for the class and stop having the class extends SimpleFormController.  

1.Besides changing it to @Controller, do I really need to add @RequestMapping annotation for the class ?  If the XML configuration is still supported, then why do I need to add @RequestMapping ?  That info should be captured in XML.

2. What else do I need to change in the class that extends SimpleFormController other than adding annotation @Controller ?

Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic