In the last article we had completed the setup.
Now we will create our first JSR 286 Portlet.
1. In Eclipse navigate and go to File->new->other.
Understanding Portlets and Portals. Creating JSR compliant Portlets. Exploring open source Portals like Liferay.
Showing posts with label Servlets and Portlets. Show all posts
Showing posts with label Servlets and Portlets. Show all posts
Thursday, 16 May 2013
Monday, 6 May 2013
Comparing Servlets and Portlets Part 3 : Portlet deployment descriptor file
In the last article we saw how a RequestDispatcher works for both Servlets and Portlets.
Difference between a web and a portlet application.
A basic web application will have a web.xml file, Servlet classes and JSP's. The web.xml file helps to configure the Servlets which make the application. It helps a developer to define which URL's will be handled by which Servlets. How security will be applied to these URL's, session management etc.
Comparing Servlets and Portlets Part 2 : Using RequestDispatcher
In the last article we saw how we create a simple Servlet or a Portlet by implementing or extending appropriate interfaces and classes.
Lets continue to see what other differences are there.
RequestDispatcher
Unlike a Servlet where we can use either ServletRequest or ServletContext to get a RequestDispatcher object in a Portlet we can only use the PortletContext to do that. Just to refresh your memory RequestDispatcher can be used to forward the request to another Servlet or a JSP for further processing.
Subscribe to:
Posts (Atom)