0

This link says that Spring MVC is essentially a request dispatcher framework, with a Servlet API variant and Portlet API variant.

So then, what exactly does this mean? What kind of environment do these two approaches provide?

whitehat
  • 2,249
  • 8
  • 31
  • 45
  • 1
    possible duplicate of [What are all the portlet classes in Spring mvc?](http://stackoverflow.com/questions/722383/what-are-all-the-portlet-classes-in-spring-mvc) – adarshr Jan 03 '12 at 11:50
  • 2
    see this - http://stackoverflow.com/questions/1480528/what-is-the-difference-between-a-portlet-and-a-servlet – Manish Jan 03 '12 at 11:50
  • @ManishSharma : Oh Yes. I wanted to ask the same thing. Thank you :) – whitehat Jan 03 '12 at 12:00

1 Answers1

1

It means that Spring will start and wait for requests, and it will redirect the requests received to your code.

You can implement your code either as servlets or portlets, usually extending/implementing one of the classes/interfaces provided by such API. Spring will provide mechanisms so you can forget the gory details (TCP, managing URLs) and concentrate in your code.

SJuan76
  • 23,682
  • 6
  • 41
  • 79