Portlet developers guide Portlet Developer's Guide Contents Overview What is a Portlet Creating a Portlet Application De ?ning the Portlet JSP Working Within the Portal Framework Extending the PortalJspBase Class Accessing Portal Session Information Sendi

Portlet Developer's Guide Contents Overview What is a Portlet Creating a Portlet Application De ?ning the Portlet JSP Working Within the Portal Framework Extending the PortalJspBase Class Accessing Portal Session Information Sending Requests Through the Portal Service Manager Using URL Links in Your Portlet HTML Form Processing Retrieving the Home Page Retrieving the Current Page Setting the Request Destination Tracking User Login Status Loading Content from an External URL Using Example Portlets Portlet JSP Example Overview The BEA WebLogic Portal enables you to create your own Business-to-Business or Business-to-Consumer Internet portal solution An integral part of any portal solution is the portlet application This guide explains what you need to know to create a portlet application including ? The de ?nition of a portlet and a portlet application ? The steps necessary to develop a portlet application ? Portlet examples ? The code necessary to create a portlet application To create a portlet application you should be a J EE developer with a background in JavaServer Pages JSP JavaScript and HTML and have a knowledge of Enterprise Java Beans Also as a portlet developer you need to read this document to learn about the BEA WebLogic Portal framework and have experience with con ?guring and running the WebLogic Server What is a Portlet From the end-user point- of-view a portlet is a specialized content area that occupies a small 'window' in the portal page For example a portlet can contain travel itineraries business news local weather or sports scores The user can personalize the content appearance and position of the portlet according to the Cpro ?le preferences set by the administrator and group to which the user belongs The user can also edit maximize minimize or oat the portlet window The following ?gure shows how portlets appear in a portal home page From a server application point-of-view a portlet is a content component implemented as a JSP that de ?nes the static and dynamic content for a speci ?c content subject weather business news etc in the portal page The portlet JSP generates dynamic HTML content from the server by accessing data entities or content adapters implemented using the J EE platform The Portlet JSP then displays the content in the portal The diagram shown above de ?nes the portal application programming model This programming model includes JSP JSP tags JavaBeans EJBs data stores and content management stores The portlet JSP contains static HTML and JSP code This JSP code uses application or content speci ?c JSP tags and or JavaBeans to access dynamic application data through EJBs content adapters and legacy system interfaces Once this data is retrieved the portlet JSP applies HTML styling to it and the generated HTML is returned in the HTTP request to the client HTTP client CCreating a Portlet Application The portlet application is a JSP that contains code responsible for retrieving personalized content and rendering it as HTML Once you have created your portlets you can associate them with one or more portals

  • 31
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager
  • Détails
  • Publié le Oct 16, 2022
  • Catégorie Administration
  • Langue French
  • Taille du fichier 56.5kB