Web Application Development



Similar documents
Exam Name: WebSpherePortal V5.1 Application Development Exam Type IBM Exam Code: Total Questions: 102

Professional Portal Development with Open Source lools: Java' Portlet API, Lucene, James, SUde

Portals, Portlets & Liferay Platform

Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1

Chapter 22: Integrating Flex applications with portal servers

KonaKart Portlet Installation for Liferay. 6 th February DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

BIRT Application and BIRT Report Deployment Functional Specification

JBoss Portlet Container. User Guide. Release 2.0

Programming on the Web(CSC309F) Tutorial: Servlets && Tomcat TA:Wael Aboelsaadat

Glassfish, JAVA EE, Servlets, JSP, EJB

Course Name: Course in JSP Course Code: P5

Web Application Architecture (based J2EE 1.4 Tutorial)

Install guide for Websphere 7.0

Red Hat Enterprise Portal Server: Architecture and Features

In this chapter, we lay the foundation for all our further discussions. We start

Oracle WebLogic Foundation of Oracle Fusion Middleware. Lawrence Manickam Toyork Systems Inc

JBoss Portal 2.4. Quickstart User Guide

Installation Guide of the Change Management API Reference Implementation

Oracle WebLogic Server

Reporting and JSF. Possibilities, solutions, challenges. Slide 1. Copyright 2009, Andy Bosch,

Server Setup and Configuration

NextRow - AEM Training Program Course Catalog

PowerTier Web Development Tools 4

CrownPeak Java Web Hosting. Version 0.20

Architecture Guide Jahia EE v6.1

Learning GlassFish for Tomcat Users

IBM Script Portlet for WebSphere Portal Release 1.1

Design Approaches of Web Application with Efficient Performance in JAVA

Communiqué 4. Standardized Global Content Management. Designed for World s Leading Enterprises. Industry Leading Products & Platform

A Guide to Understanding Web Application Development Corey Benson, SAS Institute, Inc., Cary, NC Robert Girardin, SAS Institute, Inc.

An introduction to creating JSF applications in Rational Application Developer Version 8.0

Apache Jakarta Tomcat

Web Applications. Originals of Slides and Source Code for Examples:

Cross-domain Identity Management System for Cloud Environment

EBA Procurement Procedure for the Supply of Website Services 2016: Annex 1 System Architecture Document SYSTEM ARCHITECTURE DOCUMENT

Servlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011

Java Servlet 3.0. Rajiv Mordani Spec Lead

Introduction to Sun ONE Application Server 7

HPC PORTAL DEVELOPMENT PLATFORM

Oracle Hyperion Financial Management Developer and Customization Guide

Sightly Component Development

Nanda Kishor K N. nandakishorkn@gmail.com

OPENRULES. Release TUTORIAL Cloud Application Development

University of Maine System Liferay 6 EE Solution - RFP# ADDENDUM #01

Liferay Enterprise ecommerce. Adding ecommerce functionality to Liferay Reading Time: 10 minutes

Case Study: Using Jenkins to Build WebSphere Portal Applications for the Enterprise. #jenkinsconf. Jenkins User Conference Boston #jenkinsconf

CTC What's New?

How To Write An Ria Application

Model-View-Controller. and. Struts 2

Web Frameworks and WebWork

PHP vs. Java. In this paper, I am not discussing following two issues since each is currently hotly debated in various communities:

HPC Portal Development Platform with E-Business and HPC Portlets

Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1.

Oracle Hyperion Financial Management Custom Pages Development Guide

Alfresco. Wiley Publishing, Inc. PROFESSIONAL. PRACTICAL SOLUTIONS FOR ENTERPRISE. John Newton CONTENT MANAGEMENT. Michael Farman Michael G.

Stefan Thomé Yves Kising

HP OpenView Service Desk Version 3.0

Java and Web. WebWork

Complete Java Web Development

Actuate Business Intelligence and Reporting Tools (BIRT)

Google Web Toolkit. Introduction to GWT Development. Ilkka Rinne & Sampo Savolainen / Spatineo Oy

Volume 1: Core Technologies Marty Hall Larry Brown. An Overview of Servlet & JSP Technology

Source Code Analysis

Identity Management in Liferay Overview and Best Practices. Liferay Portal 6.0 EE

What s New in IBM Web Experience Factory IBM Corporation

White Paper: 1) Architecture Objectives: The primary objective of this architecture is to meet the. 2) Architecture Explanation

SAAS. Best practices for SAAS implementation using an Open Source Portal (JBoss)

Practical Android Projects Lucas Jordan Pieter Greyling

Creating new university management software by methodologies of Service Oriented Architecture (SOA)

CS506 Web Design and Development Solved Online Quiz No. 01

Lecture 10 Fundamentals of GAE Development. Cloud Application Development (SE808, School of Software, Sun Yat-Sen University) Yabo (Arber) Xu

CSI 2132 Lab 8. Outline. Web Programming JSP 23/03/2012

Java Web Services Developer Pack. Copyright 2003 David A. Wilson. All rights reserved.

Building native mobile apps for Digital Factory

Braindumps.C questions

NetBeans IDE Field Guide

IBM Digital Experience. Using Modern Web Development Tools and Technology with IBM Digital Experience

Java Servlet and JSP Programming. Structure and Deployment China Jiliang University

Liferay. open source community experience distilled. Beginner's Guide. Sandeep Nair. Mahipalsinh Rana

2012 LABVANTAGE Solutions, Inc. All Rights Reserved.

Web Development with the Eclipse Platform

Web Applications and Struts 2

Paul Boisvert. Director Product Management, Magento

JavaScript Applications for the Enterprise: From Empty Folders to Managed Deployments. George Bochenek Randy Jones

OpenCms 7 Development

SSC - Web applications and development Introduction and Java Servlet (II)

CREATE A CUSTOM THEME WEBSPHERE PORTAL

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Web Development News, Tips and Tutorials

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Enterprise Application Development In Java with AJAX and ORM

Transcription:

Web Application Development Introduction to application servers, web applications and portlets Riccardo Rotondo riccardo.rotondo@ct.infn.it Catania, 10/03/2014

Outline } Scenario } Application Server } Web Application } Portlet 2

Scenario JSR 168/268 JSR 168/268 JSR 168/268 JSR 168/268 Catania Science Gateway Framework GRID CLOUD 3 Local Cluster

Web enviroment } } } Application Server (Glassfish) Web application working as Portlet Container (Liferay) Portlet (a custom application designed under users needs) JSR 168/268 JSR 168/268 4 JSR 168/268 JSR 168/268

What is an application server? } A software framework designed to host applications running in a web environment } Most of them contains a service layer model } A set of API is available for the developers to access the application server s functionalities } As long as the management of the environment is demanded to the application server, developers can focus on the business logic. 5

Most popular application servers http://plumbr.eu/blog/most-popular-application-servers 6

What is a web application? } An application accessed over a network } Analogy with common applications } User interact with them through a web-browser } A web applications can offer thousands of services: Liferay is a web-application 7

Liferay (www.liferay.com) } Highly-configurable, scalable, open source portal framework; } Compatible with JSR 168/286 standards and based on modern web 2.0 technologies; } Liferay services currently used: } Portal; } CMS & WCM; } Collaboration and social software 8

Liferay Plugins } Portlets } Themes } Layouts } Hooks } Exts 9

What is Porltet? } Defined in the Java Specification Request (JSR 168/286) } A porlet is a web component able to set a frame portion of a web page. } Differently from Servlet it needs a Porltlet Container to allow the user to interact with it. } Standard Portlet can be deployed in any Porlet Container in case they will use standard libray. 10

Generic Porlets Life Cycle YES NO 11 End of Services?

Generic Porltlets Interface Method Class GenericPortlets {! init (PortletConfig);! processaction (ActionRequest, ActionResponse);! render (RenderRequest, RenderResponse);! destroy();! doview (Request, Response);! doedit (Reuqest, Response);! dohelp (Request, Response);! }! 12

Portlet Mode 13 } A porltet works in three different states. } View Mode: generate a markup ( a portion of a web page); } Edit Mode: allow portlet customisation and setting preferences. } Help Mode: explains portlet functionalities.

Action Request Action Request Render Request view.jsp processaction() doview() edit.jsp Action Request Render Request edit.jsp processaction() doedit() view.jsp 14

Render Request Render Request view.jsp doview() view2.jsp 15

Portlets } Standard JSR168/286 } Interaction between jsp pages and java code Application Server (Glassfish) JSP page Java code } JSP uses <form statements to send parameters to Java code } Java code extends class GenericPortlet overriding methods: } } <jsp:usebean! <form >!! <input />! </form>! Class <you portlet>! Extends GenericPortlet!! Init, doview, dohelp, doedit, processaction! Java code uses 2 Classes to exchange data from/to JSPs! 16

Portlet files (root)! build.xml!! docroot/! WEB_INF/! css/! images/! js/!! jsp_page_1.jsp!! jsp_page_n.jsp! Used by ant to compile and deploy the portlet Define here JSP s styles JSP image files JavaScript files Portlet JSP pages 17

Portlet files (docroot) WEB_INF/ glassfish-web.xml web.xml lib/ Job/ liferay-display.xml liferay-plugin-package.properties liferay-portlet.xml portlet.xml src/ <package_name>/code.java tld/ Used to define database and other resources settings Jar Library directory (local scope) Job files (Custom dir) Portlet configuration files Java source files XML structure file 18

19

Building environment } Get Liferay with Glassfish } Customising Liferay installation (database connection) } Get Liferay plug-in SDK } Configuring Netbeans (optional) 20

Deploying first portlet } Understanding ant scripts } Creating hello world portlet } Understanding portlet files } Compiling porltet } Deploying porlet } Understading portlet management on the server 21

References } Liferay: https://www.liferay.com } Liferay Bundles: https://www.liferay.com/downloads/liferay-portal/availablereleases } Liferay Plugin SDK: https://www.liferay.com/downloads/liferay-portal/ additional-files } Netbeans: https://netbeans.org } Netbeans liferay plugin: https://contrib.netbeans.org/portalpack/ 22

Questions? 23