Content received from: http://JavaFAQ.nu/java-article882.html


Question: What is the force driving gurus to come for portlets?
Monday, September 19, 2005 (00:00:00)

Posted by

Question: What is the force driving gurus to come for portlets? Is there any job servlets can not do while portlets can, I think the anwer will be yes, but what are the jobs?

Answer: Many portlets split the job of one servlet.

In most (if not all) porlet frameworks there is one frontcontroller servlet which splits up the request dynamically (based on configurations) to the portlets being shown.

The configuration aspect is nice, as you can adjust at runtime which portlet to show to which user role with a portal admin etc.

1. Portlets have a more intuitive api. doView, doEdit, and processAction are more along the lines of how a portlet is written.
2. The ability to store and retrieve per-user preferences saves developers a huge amount of work. Doing this in a servlet environment would mean writing your own persistence logic.