• 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

Implementing the Spring MVC

 
Ranch Hand
Posts: 156
Android Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to know what are the 3 different ways to implement Spring MVC?

I tried to read it in the Spring in Action book but could not find it there.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Priety Sharma wrote:I want to know what are the 3 different ways to implement Spring MVC?

I tried to read it in the Spring in Action book but could not find it there.



Was this one of your interview questions?

Against my better judgement here is an answer

1) Have your Controller implement one of the Controller interfaces (Very Old Style)
2) XML mapping of your requests to Controllers
3) Annotations in your Controller.

That is the short quick answer.

Mark
 
Priety Sharma
Ranch Hand
Posts: 156
Android Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,

Yes it was an interview question.
Thanks for the answer.

Isnt the annotations or xml configuration approach true for Struts too?
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Priety Sharma wrote:Hi Mark,

Yes it was an interview question.
Thanks for the answer.

Isnt the annotations or xml configuration approach true for Struts too?



Depends on the version of Struts you are using. 1.x version only had xml, as far as I ever knew. I am sure Struts 2.x has Annotations and xml.

Mark
 
Priety Sharma
Ranch Hand
Posts: 156
Android Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,

Thanks again for the inputs.
 
reply
    Bookmark Topic Watch Topic
  • New Topic