This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes What is a portlet?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "What is a portlet??" Watch "What is a portlet??" New topic

What is a portlet??

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi friends,

What is a portlet and how could it be effectively used??
I asked a lot of persons but nobody answered.

Please reply

Poornima Sharma

Poornima Sharma
SCJP 6.0
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
A portlet is a unit within a portal that provides a specific piece of functionality, service, or content. I would suggest searching in Google for basic answers. The first hit for "portal" in Google is a good entry in Wikipedia. You can also get some good introduction on any portal product manual (such as IBM WebSphere or Oracle Weblogic).

Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
kasyaparushi kiran
Ranch Hand

Joined: May 05, 2009
Posts: 33
Portlet is a pluggable webapplication in a portal page.

(A pluggable Web component managed by a portlet container;)

K.Kiran Kumar
vijay makam
Ranch Hand

Joined: Sep 06, 2008
Posts: 31
If you visit Google or Yahoo's home page you are given options for customization (for your future visits how the page should look like) like you can select some of the news which are relevant to you like sports, weather updates, music, entertainment, business etc., Once you select the things which you like all those will appear each in a separate window i.e, weather update in one window, another window for news, one for stock updates etc., Each of these windows(with its own title bar and few other buttons) represents a portlet.

These windows are nothing more than different applications(.war files), developed independently of each other. The portal developer will install these.war file on the server and create a page which is called as a PORTAL. That will become a website's Home page housing so many smaller windows (different apps).

Jonas X. Yuan
Ranch Hand

Joined: May 18, 2008
Posts: 108
What is a portal?

As shown in above figure you will see the portal page of the Liferay portal for the user Admin . This page is made up of header, footer, navigation and a set of portlets with a specific layout template, e.g. Reports, Language, Sign in, etc.

In general, a portal (otherwise known as a web portal) is a web based application that, typically, provides personalization, authentication, and content aggregation from different sources and hosts the presentation layer of information systems. Aggregation is the action of integrating content from different sources within a web page. A portal may have sophisticated personalization features to provide customized content to users. Portal pages may have a different set of portlets creating content for different users.]

What is a portlet?

As shown in following figure, you will see a set of portlets e.g. Reports, Language, Sign in, etc..

Insert Image 4701-02-02.tif

In brief, a portlet, e.g, Reports, is an application that provides a specific piece of content (that is, the link test123) to be included as part of a portal page, e.g. Home - Welcome Page. It is managed by a portlet container that processes requests and generates dynamic content. Actually, portlets are used by portals as pluggable user interface components.].

The content generated by a portlet is also called a fragment. A fragment is a piece of mark-up (e.g. HTML, XHTML, WML, etc.) adhering to certain rules and can be aggregated with other fragments to form a complete document. The content of a portlet e.g., test123, for the portlet Reports is normally aggregated with the content of other portlets to form the portal page. The lifecycle of a portlet is managed by the portlet container.

Obviously, web clients interact with portlets via a request-response paradigm implemented by the portal. Normally, users interact with content produced by portlets, for example by following links, e.g. test123 for the portlet Reports or submitting forms, resulting in portlet actions being received by the portal, which are forwarded by it to the portlets targeted by the user's interactions.

The content generated by a portlet may vary from one user to another depending on the user configuration for the portlet. For example, the content generated by the portlet Reports was the link test123, while the content generated by the portlet Language was the links – language icons e.g., American English, Chinese, etc.

Abstracted from Liferay System Development book: Liferay Portal 5.2 (or above) Systems Development

Books: Liferay Portal 6.1 Systems Development
Ashok Mor
Ranch Hand

Joined: Jul 17, 2007
Posts: 44
In terms to understand portlet first you need to understand Portal.

Portal is nothing but a web application in which we can create many portlet which render actual web content.

So Portlet is just like one web page which run top of Portal.
I agree. Here's the link:
subject: What is a portlet??
It's not a secret anymore!