What is portal
Portlet This is defined in the specification Portal of:
A portal is a web based application that–commonly-provides personalization, authentication, and content aggregation from Di Fferent sources and hosts the presentation layer of information Systems.
a Portal is A web based application that–commonly-provides personalization, Authen Tication, content aggregation from different sources and hosts the presentation layer of information Systems. |
Portal is a Web -based information system that provides personalization, login authorization, and aggregation of content from different data sources based on the presentation layer. Specifically to the Java EE domain, theportal is mostly a java ee - compliant ear package works.
What is a portlet
Standard Chinese definition Portlet of:
A portlet is an application, provides a specific piece of content (information or service) to being included as part of a Portal page. It is managed by a portlet container, that processes requests and generates dynamic content
A portlet is an application, provides a specific piece of content (information or service) to being included as part of a Portal page. It is managed by a portlet container, that processes requests and generates dynamic content |
a Portlet is a based on Java Technology of being Portlet Container-managed Web build, it can handle Requests , generate dynamic content output, a Portlet responsible for providing Portal The presentation of a particular part of the page.
with theservletSimilarly,PortletThe life cycle isPortletcontainer to manage. Portletthe generated content can also be calledFragment, these multiplePortletgenerated by multipleFragmentwill bePortalAggregation (Aggregate) to show together. Different users see thePortletmay be different, depending on how different users use thePortletthe configuration.
What is a portlet Container
Standard Chinese definition Portlet Container's
A portlet Container runs portlets and provides them with the required runtime environment. A portlet Container contains portlets and manages their lifecycle. It also provides persistent storage for portlet preferences. A Portlet container receives requests from the portal to execute requests on the portlets hosted by it.
A portlet Container runs portlets and provides them with the required runtime environment. A portlet Container contains portlets and manages their lifecycle. It also provides persistent storage for portlet preferences. A Portlet container receives requests from the portal to execute requests on the portlets hosted by it. |
portlet The container provides portlet life cycle environment, management Span style= "FONT-FAMILY:CALIBRI;" >portlet portlet Preferences portlet portal portlet
Portlet not responsible for aggregation Portlet The generated content, which is Portal responsibility. The portlet container and portal can be implemented in a application based on the implementation of the middleware vendor , It can also be implemented in two different application .
The three-person relationship
client comes with portal interactive force, description portlet , portlet container, portal Three relationships, responsibilities:
1.Web client initiates request requests to the Portal via http
2. request is received by the portal
3.theportal parses whether this request needs to interact with the portlet
4. if required, the portal notifies the Portlet container to invoke the portlet Handling Interactions
5.Portal Gets the fragments returned by the portlet through the portlet container
6. ThePortal aggregates The fragmentsgenerated by the portlet , generating the final page, Back to the Web client
Portal, Portlet, portlet container three concepts