IntelliJ Java IDE
The moose likes Portals and Portlets and the fly likes Portlets vs Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Portlets vs Servlets" Watch "Portlets vs Servlets" New topic
Author

Portlets vs Servlets

Veeramanikandan Radhakrishnan
Greenhorn

Joined: Jan 29, 2007
Posts: 11
May be one of you over there might help...

i could understand what's the difference between the portal server apps and servlet-jsp apps.. but i still couldn't get the difference, why they came into existence..

also which is ruling now... cgi,jsp-servlet, or portlets....

help out pals
Veeramanikandan Radhakrishnan
Greenhorn

Joined: Jan 29, 2007
Posts: 11
also, there are still servlet-jsp in usage even though portlets came to existence...

why?

i think someone could make out!!!
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4962

The big different between Servlets and Portlets is the focus.

A Servlet/JSP application, in very general terms, controls most of the overall page delivered to a client. With a portlet, the content delivered makes up only a very small section of the overall page. This allows a great division of labour when developing the overall website - things such as themes, skins, layout, user rights, etc, can all be configured outside and away from the actual portlet application - things that are a bit more difficult, although not impossible to do, with a typical Servlet/JSP application.

The JSR168 portlet API does not replace the Servlet/JSP API, but instead, sorta builds on top of it. Look at the various objects in the Portlet API here: All of the Classes in the JSR168 Portlet API Most of those classes are just wrappers for Servlet/API classes. In fact, I think the docs actually say that a portlet container sits on top of a Servlet/JSP container.

A portal server is a great product that fits a big need that many clients require, and it can provide customization, personalization, user rights management and content management features that integrate and can be used quite easily. For many customers, a portal isn't a perfect fit, but for many others it is, and when it is, it's amazing.



Cheers!

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
 
subject: Portlets vs Servlets
 
Threads others viewed
portlet and servlet
share session data between portlets and a jsp of the portal theme
Portlets-Servlets-what's the difference
Migrating to Portals & Portlets
Diffence Between JSP and Servlets
IntelliJ Java IDE