whitehat
whitehat

Reputation: 2391

What does Servlet API and Portlet API mean?

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?

Upvotes: 0

Views: 373

Answers (1)

SJuan76
SJuan76

Reputation: 24885

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.

Upvotes: 1

Related Questions