New features of the JSR 286 portlet, part 2nd: Resource Services, events, and shared rendering parameters

Source: Internet
Author: User
Tags resource tomcat apache tomcat

In the 1th part of this series, the JSR-286 portlet is briefly reviewed, and the new features of the JSR-the portlet are described in detail, and this article will introduce the reader to the J Method for using the new feature of the SR 286 Portlet. This article will first introduce the JSR 286 reference implementation build process for the Apache Pluto 2.0 platform, and then introduce the JSR 286 portlet to the reader by developing and deploying the JSR 286 portlet application on the Apache Pluto 2.0 platform Resource services and new interaction features: event and shared rendering parameters.

About this series

This series is designed for developers who have a JSR portlet development base and want to learn about the new features and development processes of the JSR 286 portlet. After completing this series, you will learn what enhancements are available relative to the JSR PORTLET,JSR 286 Portlet, and how these new features are applied in real-world development.

Part 1th of this series briefly reviews the JSR-a portlet and lists what's new in the JSR 286 portlet. Parts 2nd and 3rd will provide readers with a way to use the new features of the JSR 286 portlet by developing and deploying Portlet applications on the Apache Pluto 2.0 platform.

About this article

This article will first introduce the JSR 286 reference implementation build process for the Apache Pluto 2.0 platform, and then introduce the JSR 286 portlet to the reader by developing and deploying the JSR 286 portlet application on the Apache Pluto 2.0 platform Resource services and new interaction features: event and shared rendering parameters.

The process of developing the application for Portlet filters and portlet windows is described in detail in part 3rd.

The following products are used in the development and deployment of the sample application:

Sun JDK 1.5

Apache Tomcat 6.x

Apache Pluto 2.0

Apache Maven 2.x

Eclipse Europa (Eclipse V3.3) for Java EE developers

Before reading this article, you should have an idea of the JSR Portlet and read the 1th part of this series.

Preparatory work

Apache Pluto 2.0 is a reference implementation of JSR 286, a portlet container that implements the Portlet 2.0 API, acts as a portlet's run-time environment, and supports the runtime environment of the Web application server's Servlet container serv Let is a very similar situation. Pluto 2.0 the currently supported JSR 286 portlet new features include resource services, events, Portlet filters, shared render parameters, portlet windows.

In this article, we will use Apache Pluto 2.0 to develop tests for our JSR 286 Portlet application. The following actions are performed in the Windows XP operating system environment.

1. Build a JSR 286 Portlet operating Environment Apache Pluto 2.0

Apache Pluto 2.0 is currently in the development phase, and we can only build a Portlet 2.0 container that supports the JSR 286 portlet standard through its source code.

Install Sun JDK 1.5 and set environment variables

This step is familiar to the general reader, no longer to be discussed. It is to be noted that, after the author tested, the Pluto 2.0 source project can only be built under Sun JDK 1.5, and I built failures using sun JDK 1.6 and IBM JDK 1.5.

Install Maven 2

Pluto source code uses Maven 2 for project management and construction, and we must first install the tool.

Find the latest version of Maven 2 package from http://maven.apache.org/, download and unzip, and set MAVEN 2 installation path to ${m2_home}. Add the ${m2_home}\bin directory to the system's PATH environment variable.

Install Tomcat 6

Find the latest version of Tomcat 6 from the http://tomcat.apache.org/package, download and extract, set the installation path to ${tomcat_home}.

Get Apache Pluto 2.0 Source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.