Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the differences between Portlet and Servlet?

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends..

i want to know what's the differences between Portlet and Servlet?..
as far as i browse the book, the Portlet is similiarly with Servlet..
and for what reason we've to use Portlet?..
please correct me if i'm wrong..

Thanks in advance..
 
Ankur Srivastav
Ranch Hand
Posts: 57
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For this the best place to start will be understanding JSR 168 which is the specification for Portlet. In very short I can tell you that a Portlet and Servlet follow the same life cycle.

To get a good understanding refer to following : http://createportlet.blogspot.com/2009/09/introducing-portal-world.html
 
Jeff Handa
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Leonardo,

A quick Google search of servlet vs. portlet will yield a lot of very good explanations.

Cameron's post does a great job explaining why you'd use a portlet over a servlet:

http://www.coderanch.com/t/203604/Portals-Portlets/java/Portlets-vs-Servlets#986491

I also think this post by Chris from Unicon is a great starting point for developing portlets if you have a background in developing servlets.

http://www.unicon.net/node/586

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, Thanks for any replies..
i'll browse and learn it..

and then i'll ask you if i face the problem..
Thanks..
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic