Sun JSR 168 Portlet Chinese Specifications Original (1)

xiaoxiao2021-03-05  47

JSR168 PORLET Standard Manual Chinese Candout

This standard Chinese resource collection is organized on the Internet and has made some modifications and adds, mainly to adapt to the language, terms and other unrelated purposes.

Since I have limited level, if there is a mistake, please do a high-end finger; if you have a high opinion, I hope I don't say words, and I have an open source for China.

Here, I would like to thank the original translator of this specification:

First, the second chapter Taiwan Jini

Chapter 3, Shanghai

Chapter 4 ~ Final Chapter Taiwan Province Koji Lin

PLT.1.1 Preface to JINI

The website of many large enterprises has gradually adopted Portal Server as the basis for development. As for what is Portal, Chinese translation as "Portal". Some people may think .. The killing .. The portal is not like yahoo, pchome, yam, etc. However, the Portal Server we discussed now is not so simple, basically Yahoo, PCHOME, Yam those who can only call the search engine.

If you have never used Portal Server or it seems to understand. You can join mynetscape or myyahoo to register an account. Because MyNetscape's style is better, so I will follow the example of mynetscape.

If you first come in touch to Portal, you will be surprised to find ... Wow .. Why is it full of so many small windows in a website. We call these small windows called "portlet", and each small window is independent Information and content, you can maximize, reduce, restore, close, and more. When you log in, you can choose and adjust your portlet, you can also set your favorite style and style, and you can set the data configuration of each portlet.

This system is the system of God, is the portal we will introduce.

Plt.2.1 What is Portal?

Portal's composition can be divided into three parts (1) Portal Server (2) Portlet Container (3) portlet

1) The definition of Portal Server is

A Portal is a web-based system, usually providing personalization settings, single landing, and a variety of different sources or different websites, and put this information on webpage The rendering platform in combination, the portal will have a delicate personalization to provide a customized web page, which will give different information content when different levels of users browse this page.

2) The definition of Portlet Container is

Portlet Container is a environment that provides portlets, containing many portlets and manages their life cycle, and he will always save portlets. After receiving the request from Portal, then pass this request to the existing container Portlet execution. Portlet Container is not obligated to combine the information generated by portlets, which must be processed by portal. Portal and Portlet Container can be placed together as components of the same system, or separate into two separate components.

Plt.2.2 What is portlet?

A portlet is a Web component that is technologically technically technically, managed by Portlet Container, dedicated to the customer's request and the information content that produces various dynamic. Portlets are a pluggable client interface component that provides a presentation layer to become an information system. These are also referred to as fragments, while fragments are Fragment, and the fragment is Markup (HTML, XHTML, WML), and can be combined with other fragments into a complex file. The content in the portlet is normal to become a portal web page with the content polymerization of other portlets. The lifecycle of the portlet is controlled by the portlet container.

The interaction of client and portlets is implemented by Portal through a typical request / response method. It is normal for the content of the customer and portlets, for example, according to the next connection or a confirmed form, result portal The action of the portlet will be received to turn this processing to the target portlet. The generation of these portlets may vary from different users, which is completely based on the customer's setting for this portlet.

PLT.2.3 PORTLET and Servlet relationship?

Portlets and servlets are like a brother, but there is a little bit of a little bit, because servlet and portlets are not as good, so the research team decides to define portlets to become a new component, so define a new and clear interface of portlets. behavior. In order to achieve reused purposes as much as possible, the Portlet's specifications use the servlet specification, many concepts are very similar, combined with portlets, servlets, and JSP in the same website system, we call the portlet application. In the same portlet application, they will share the same ClassLoader, Context, and Session.

1) The similarity of portlets and servlets

@ portlets is also a Web component of Java technology @ portlets is also a specific Container in administering @ portlets to dynamically generate various content @ portlets' lifecycle managed by Container @ portlets and client interaction with the REQUEST / RESPONSE

2) Portlets and servlets have some differences

@ portlets only generates a Markup information fragment, not a full web file. Portal places all portlet markup information clips to a complete portal page. @ portlets will not have direct relationships with the URL @ client must interact with Portal system and portlets @ portlets has some definition request processing, Action Request, and Render Request. @ Portlets Default Definition Portlet Modes and Window Status You can point out which function of this portlet is executing and now. @ portlets can exist multiple in the same portal web page.

3) Portlet has some additional features that are not available in servlets.

@ Portlets can access and store permanent profiles and customization information. @ portlets You can access user data @ portlets with URL rewrite features to dynamically establish links in the file, allowing Portal Server to do not know how to establish links and actions in the web page segment. @ portlets You can store temporary data in Portlet Session with two different ranges: Application-Wide Scope and Portlet Private Scope. 4) Portlet does not have some functions, but servlets are available

@ servlet has a character set encoding mode @ servlet to set the HTTP output header @ servlet to receive the URL request from Portal.

转载请注明原文地址:https://www.9cbs.com/read-31972.html

New Post(0)