Java Portals and PortletsSlide 2Java PortalWhy Java Portlets?Java PortletUnderstanding Portlet SpecificationPortal ViewPortlet communicating with databasesViewing QueryPortletPortlet querying the databaseMain Portal WindowQueryPortlet in Edit ModeQueryPortlet displaying outputReferencesThank You..!!Java Portals and Portlets Java Portals and Portlets Submitted By:Rashi ChopraCIS 764Fall 2007Rashi ChopraJava PortalNeed for PortletsJava PortletsOverview of Portlet SpecificationPortal ViewPortlet Communicating with databasesQueryPortlet exampleContentsContentsRashi ChopraJava PortalJava PortalJava Portal is:• A tool for aggregating and managing web content.• A user customizable view of these Web content pieces.• Implemented on top of standard services.• A way to accomplish tasks through browsers:• Launch, monitor jobs• Move files• Run science applications based on these services.• Compatible with emerging standards and best practices (such as portlets, JSR 168 and WSRP).Rashi ChopraWhy Java Portlets?Why Java Portlets?Problems with Portal development:There is no good way to share interface components.We need to constantly reinvent things like login services, customization services, page organization, access controls.Solution:We need portlets to enable distributed portal development.Rashi ChopraJava PortletJava PortletIt is a piece of Java code that runs in a Web server inside a container servlet.Portlets can do two things:◦Perform non-visual operations such as make connections to remote hosts, perform operations.◦Create their display.The portlet passes its display to its parent, which is responsible for constructing the entire display.◦Typically this is HTML, with tables uses to organize component displays.◦Other displays are possible (VoiceXML, WML).Rashi ChopraUnderstanding Portlet SpecificationUnderstanding Portlet SpecificationLogical Components of Java Portlet Specification: Portal Portlet Portlet ContainerConstructing a Portal ViewPortlet LifecyclePackaging a PortletRashi ChopraPortal ViewPortal ViewRashi ChopraPortlet communicating with databasesPortlet communicating with databasesCreating a QueryPortlet: QueryPortlet is a simple portlet that displays the contents of a database query. Each user can modify the default query, saving their new query so it executes each time they begin a portal session.Rashi ChopraViewing QueryPortletViewing QueryPortletEach portlet application has two types of state managed by the portlet container: Portlet mode: View, Edit and help Window state: Minimized, normal and maximized.Portlet mode determines which content a portlet will generate and window state determines just how much screen real estate the portlet is allowed.Rashi ChopraPortlet querying the databasePortlet querying the databaseRashi ChopraMain Portal WindowMain Portal WindowRashi ChopraQueryPortlet in Edit ModeQueryPortlet in Edit ModeRashi ChopraQueryPortlet displaying outputQueryPortlet displaying outputRashi ChopraReferencesReferenceshttp://www.developer.com/java/web/article.php/10935_3372881_1http://www.javapassion.com/j2eeadvanced/Portlet4.pdfhttp://java.sys-con.com/read/46966.htmRashi ChopraThank You..!!Thank You..!!Questions?Rashi
View Full Document