Skip to main content

Posts

Showing posts from December, 2015

Servlets vs Portlets

Basic Overview of servlet and portlet-: S.No Servlet Portlets 1 Servlet uses deployment descriptor (web.xml) determine how URLs map to servlets Portlets also uses web.xml file however they have additional deployment-descriptor portlet.xml, which must declare all of the portlets that will be used by the portlet container 2 Servlet uses HttpServletRequest and HttpServletResponse Instead of using HttpServletRequest and HttpServletResponse portlets uses Action Request and Action Response , Render Request and Render Response 3 Web Container creates Servlet Context at the time of deploying the project , Servlet Context can be used to get configuration information from web.xml Similar to servlet context portlet uses PortletContext. 4 Servlet uses ServletConfig to get configuration information Portlet uses PortletConfig to get configuration information 5 When a request to servlet is made its load the whole h...