SlideShare une entreprise Scribd logo
1  sur  23
Web Application Development
Introduction to application
servers, web applications and
portlets
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Outline

 Scenario

 Use Case
 Portlet Develop
 Hostname porltlet

 Catania Grid Engine API

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Scenario

JSR 168/268
JSR 168/268

JSR 168/268

JSR 168/268

Catania Science Gateway Framework

GRID

CLOUD

Local

Riccardo Rotondo
Tutorial on
Cluster Science Gateways, Roma, 04.06.2013
Web enviroment

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

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
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.
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Most popular application servers

http://plumbr.eu/blog/most-popular-application-servers
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
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

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
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

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Liferay Plugins






Portlets
Themes
Layouts
Hooks
Exts

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
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.

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Generic Porlets Life Cycle

YES

NO
End of
Services?

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Generic Porltlets Interface Method
Class GenericPortlets {
init (PortletConfig);
processAction (ActionRequest,
ActionResponse);
render (RenderRequest, RenderResponse);
destroy();
doView (Request, Response);
doEdit (Reuqest, Response);
doHelp (Request, Response);
}

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Portlet Mode
 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.
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Action Request
Action
Request

view.jsp

processAction()

Action
Request

edit.jsp

Render
Request

doView()

edit.jsp

doEdit()

view.jsp

Render
Request

processAction()

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Render Request

Render
Request

view.jsp

doView()

view2.jsp

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Portlets
 Standard JSR168/286
 Interaction between jsp pages and java code
Application Server (Glassfish)

JSP page
<jsp:useBean
<form … >

Java code
Class <you portlet>
Extends
GenericPortlet …

<input … />
</form>

 JSP uses <form… statements to send parameters to Java code
 Java code extends class GenericPortlet overriding methods:




Init, doView, doHelp, doEdit, processAction

Java code uses 2 Classes to exchange data from/to JSPs
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Portlet files (root)
build.xml

Used by ‘ant’ to compile and
deploy the portlet

docroot/
WEB_INF/
css/
images/
js/

jsp_page_1.jsp
…
jsp_page_n.jsp

Define here JSP’s styles
JSP image files
JavaScript files

Portlet JSP pages

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Portlet files (docroot)
WEB_INF/
Used to define database and other
glassfish-web.xml
resources settings
web.xml
lib/
Jar Library directory (local scope)
Job/
Job files (Custom dir)
liferay-display.xml
liferay-plugin-package.properties
Portlet
liferay-portlet.xml
configuration files
portlet.xml
src/
Java source files

<package_name>/code.java

tld/

XML structure file
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Building environment

 Get Liferay with Glassfish
 Customising Liferay installation (database
connection)
 Get Liferay plug-in SDK
 Configuring Netbeans (optional)

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Deploying first portlet








Understanding ant scripts
Creating “hello world” portlet
Understanding portlet files
Compiling porltet
Deploying porlet
Understading portlet management on the
server

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
References
 Liferay: https://www.liferay.com
 Liferay Bundles:
https://www.liferay.com/downloads/liferayportal/available-releases
 Liferay Plugin SDK:
https://www.liferay.com/downloads/liferayportal/additional-files
 Netbeans: https://netbeans.org
 Netbeans liferay plugin:
https://contrib.netbeans.org/portalpack/
Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013
Questions ?

Riccardo Rotondo
Tutorial on Science Gateways, Roma, 04.06.2013

Contenu connexe

En vedette

The Java Content Repository
The Java Content RepositoryThe Java Content Repository
The Java Content Repositorynobby
 
App and web with Hippo CMS and AngularJS
App and web with Hippo CMS and AngularJS App and web with Hippo CMS and AngularJS
App and web with Hippo CMS and AngularJS Peter Broekroelofs
 
Cms integration of apache solr how we did it.
Cms integration of apache solr   how we did it.Cms integration of apache solr   how we did it.
Cms integration of apache solr how we did it.lucenerevolution
 
Introducing Hippo CMS 10.2
Introducing Hippo CMS 10.2Introducing Hippo CMS 10.2
Introducing Hippo CMS 10.2Hippo
 
JCR - Java Content Repositories
JCR - Java Content RepositoriesJCR - Java Content Repositories
JCR - Java Content RepositoriesCarsten Ziegeler
 
Build Your Own CMS with Apache Sling
Build Your Own CMS with Apache SlingBuild Your Own CMS with Apache Sling
Build Your Own CMS with Apache SlingBob Paulin
 
Hippo gettogether april 2012 faceted navigation a tale of daemons
Hippo gettogether april 2012 faceted navigation   a tale of daemonsHippo gettogether april 2012 faceted navigation   a tale of daemons
Hippo gettogether april 2012 faceted navigation a tale of daemonsHippo
 
The Zero Bullshit Architecture
The Zero Bullshit ArchitectureThe Zero Bullshit Architecture
The Zero Bullshit ArchitectureLars Trieloff
 
Hippo get together presentation solr integration
Hippo get together presentation   solr integrationHippo get together presentation   solr integration
Hippo get together presentation solr integrationHippo
 
Hippo CMS Integration Patterns
Hippo CMS Integration PatternsHippo CMS Integration Patterns
Hippo CMS Integration PatternsJeroen Reijn
 
Life of St. Augustine of Hippo
Life of St. Augustine of HippoLife of St. Augustine of Hippo
Life of St. Augustine of HippoGenesis Labana
 
Hippo Nuxeo World 2011
Hippo Nuxeo World 2011Hippo Nuxeo World 2011
Hippo Nuxeo World 2011Hippo
 

En vedette (17)

The Java Content Repository
The Java Content RepositoryThe Java Content Repository
The Java Content Repository
 
App and web with Hippo CMS and AngularJS
App and web with Hippo CMS and AngularJS App and web with Hippo CMS and AngularJS
App and web with Hippo CMS and AngularJS
 
JCR and ModeShape
JCR and ModeShapeJCR and ModeShape
JCR and ModeShape
 
Cms integration of apache solr how we did it.
Cms integration of apache solr   how we did it.Cms integration of apache solr   how we did it.
Cms integration of apache solr how we did it.
 
Introducing Hippo CMS 10.2
Introducing Hippo CMS 10.2Introducing Hippo CMS 10.2
Introducing Hippo CMS 10.2
 
JCR - Java Content Repositories
JCR - Java Content RepositoriesJCR - Java Content Repositories
JCR - Java Content Repositories
 
Build Your Own CMS with Apache Sling
Build Your Own CMS with Apache SlingBuild Your Own CMS with Apache Sling
Build Your Own CMS with Apache Sling
 
Hippo gettogether april 2012 faceted navigation a tale of daemons
Hippo gettogether april 2012 faceted navigation   a tale of daemonsHippo gettogether april 2012 faceted navigation   a tale of daemons
Hippo gettogether april 2012 faceted navigation a tale of daemons
 
The Zero Bullshit Architecture
The Zero Bullshit ArchitectureThe Zero Bullshit Architecture
The Zero Bullshit Architecture
 
Hippo get together presentation solr integration
Hippo get together presentation   solr integrationHippo get together presentation   solr integration
Hippo get together presentation solr integration
 
Hippo CMS Integration Patterns
Hippo CMS Integration PatternsHippo CMS Integration Patterns
Hippo CMS Integration Patterns
 
Hippo CMS - A first look
Hippo CMS - A first lookHippo CMS - A first look
Hippo CMS - A first look
 
Introduction to JCR
Introduction to JCR Introduction to JCR
Introduction to JCR
 
Choosing Hippo CMS
Choosing Hippo CMSChoosing Hippo CMS
Choosing Hippo CMS
 
Life of St. Augustine of Hippo
Life of St. Augustine of HippoLife of St. Augustine of Hippo
Life of St. Augustine of Hippo
 
Hippo Nuxeo World 2011
Hippo Nuxeo World 2011Hippo Nuxeo World 2011
Hippo Nuxeo World 2011
 
JCR In 10 Minutes
JCR In 10 MinutesJCR In 10 Minutes
JCR In 10 Minutes
 

Similaire à Web Applications Development

Portlet Framework: the Liferay way
Portlet Framework: the Liferay wayPortlet Framework: the Liferay way
Portlet Framework: the Liferay wayriround
 
Catania Science Gateway Framework
Catania Science Gateway Framework Catania Science Gateway Framework
Catania Science Gateway Framework riround
 
Portlets 2.0 Tssjs Prague 2008
Portlets 2.0 Tssjs Prague 2008Portlets 2.0 Tssjs Prague 2008
Portlets 2.0 Tssjs Prague 2008SteveMillidge
 
JSR 168 Portal - Overview
JSR 168 Portal - OverviewJSR 168 Portal - Overview
JSR 168 Portal - OverviewVinay Kumar
 
Job Managment Portlet
Job Managment PortletJob Managment Portlet
Job Managment Portletriround
 
D22 Portlet Development With Open Source Frameworks
D22 Portlet Development With Open Source FrameworksD22 Portlet Development With Open Source Frameworks
D22 Portlet Development With Open Source FrameworksSunil Patil
 
D22 portlet development with open source frameworks
D22 portlet development with open source frameworksD22 portlet development with open source frameworks
D22 portlet development with open source frameworksSunil Patil
 
Introduction to java standard portlets
Introduction to java standard portletsIntroduction to java standard portlets
Introduction to java standard portletsRohan Faye
 
Apache Shindig, from Server Side Portlets to Open Social Gadgets
Apache Shindig, from Server Side Portlets to Open Social GadgetsApache Shindig, from Server Side Portlets to Open Social Gadgets
Apache Shindig, from Server Side Portlets to Open Social GadgetsTyrell Perera
 
Portets to composite applications
Portets to composite applicationsPortets to composite applications
Portets to composite applicationsSerge Huber
 
Java Portlet 2.0 (JSR 286) Specification
Java Portlet 2.0 (JSR 286) SpecificationJava Portlet 2.0 (JSR 286) Specification
Java Portlet 2.0 (JSR 286) SpecificationJohn Lewis
 
Jsr286 Cmf2007 c2b2 portal portlet
Jsr286   Cmf2007 c2b2 portal portletJsr286   Cmf2007 c2b2 portal portlet
Jsr286 Cmf2007 c2b2 portal portletSteveMillidge
 
Portlet applications a multi server deployment perspective by mohit kumar(p...
Portlet applications   a multi server deployment perspective by mohit kumar(p...Portlet applications   a multi server deployment perspective by mohit kumar(p...
Portlet applications a multi server deployment perspective by mohit kumar(p...Mohit Kumar
 
Annotation-Based Spring Portlet MVC
Annotation-Based Spring Portlet MVCAnnotation-Based Spring Portlet MVC
Annotation-Based Spring Portlet MVCJohn Lewis
 
Introduction to Portlets Using Liferay Portal
Introduction to Portlets Using Liferay PortalIntroduction to Portlets Using Liferay Portal
Introduction to Portlets Using Liferay Portalrivetlogic
 
Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)Logico
 
Java EE7
Java EE7Java EE7
Java EE7Jay Lee
 
Sprint Portlet MVC Seminar
Sprint Portlet MVC SeminarSprint Portlet MVC Seminar
Sprint Portlet MVC SeminarJohn Lewis
 

Similaire à Web Applications Development (20)

Portlet Framework: the Liferay way
Portlet Framework: the Liferay wayPortlet Framework: the Liferay way
Portlet Framework: the Liferay way
 
Catania Science Gateway Framework
Catania Science Gateway Framework Catania Science Gateway Framework
Catania Science Gateway Framework
 
Portlets 2.0 Tssjs Prague 2008
Portlets 2.0 Tssjs Prague 2008Portlets 2.0 Tssjs Prague 2008
Portlets 2.0 Tssjs Prague 2008
 
JSR 168 Portal - Overview
JSR 168 Portal - OverviewJSR 168 Portal - Overview
JSR 168 Portal - Overview
 
Job Managment Portlet
Job Managment PortletJob Managment Portlet
Job Managment Portlet
 
Portlet
PortletPortlet
Portlet
 
D22 Portlet Development With Open Source Frameworks
D22 Portlet Development With Open Source FrameworksD22 Portlet Development With Open Source Frameworks
D22 Portlet Development With Open Source Frameworks
 
D22 portlet development with open source frameworks
D22 portlet development with open source frameworksD22 portlet development with open source frameworks
D22 portlet development with open source frameworks
 
Introduction to java standard portlets
Introduction to java standard portletsIntroduction to java standard portlets
Introduction to java standard portlets
 
Apache Shindig, from Server Side Portlets to Open Social Gadgets
Apache Shindig, from Server Side Portlets to Open Social GadgetsApache Shindig, from Server Side Portlets to Open Social Gadgets
Apache Shindig, from Server Side Portlets to Open Social Gadgets
 
Portets to composite applications
Portets to composite applicationsPortets to composite applications
Portets to composite applications
 
Java Portlet 2.0 (JSR 286) Specification
Java Portlet 2.0 (JSR 286) SpecificationJava Portlet 2.0 (JSR 286) Specification
Java Portlet 2.0 (JSR 286) Specification
 
Jsr286 Cmf2007 c2b2 portal portlet
Jsr286   Cmf2007 c2b2 portal portletJsr286   Cmf2007 c2b2 portal portlet
Jsr286 Cmf2007 c2b2 portal portlet
 
Portlet applications a multi server deployment perspective by mohit kumar(p...
Portlet applications   a multi server deployment perspective by mohit kumar(p...Portlet applications   a multi server deployment perspective by mohit kumar(p...
Portlet applications a multi server deployment perspective by mohit kumar(p...
 
Annotation-Based Spring Portlet MVC
Annotation-Based Spring Portlet MVCAnnotation-Based Spring Portlet MVC
Annotation-Based Spring Portlet MVC
 
Introduction to Portlets Using Liferay Portal
Introduction to Portlets Using Liferay PortalIntroduction to Portlets Using Liferay Portal
Introduction to Portlets Using Liferay Portal
 
Liferay
LiferayLiferay
Liferay
 
Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)
 
Java EE7
Java EE7Java EE7
Java EE7
 
Sprint Portlet MVC Seminar
Sprint Portlet MVC SeminarSprint Portlet MVC Seminar
Sprint Portlet MVC Seminar
 

Plus de riround

Gromacs on Science Gateway
Gromacs on Science GatewayGromacs on Science Gateway
Gromacs on Science Gatewayriround
 
e-Infrastructure & Data Service
e-Infrastructure & Data Servicee-Infrastructure & Data Service
e-Infrastructure & Data Serviceriround
 
Catania Science Gateway Framework
Catania Science Gateway FrameworkCatania Science Gateway Framework
Catania Science Gateway Frameworkriround
 
Portlet Framework: the Liferay way
Portlet Framework: the Liferay wayPortlet Framework: the Liferay way
Portlet Framework: the Liferay wayriround
 
Introduction on Science Gateway
Introduction on Science GatewayIntroduction on Science Gateway
Introduction on Science Gatewayriround
 
Introduction on Science Gateway
Introduction on Science GatewayIntroduction on Science Gateway
Introduction on Science Gatewayriround
 
Science Gateways: one portal, many e-Infrastructures and related services
Science Gateways: one portal, many e-Infrastructures and related servicesScience Gateways: one portal, many e-Infrastructures and related services
Science Gateways: one portal, many e-Infrastructures and related servicesriround
 

Plus de riround (7)

Gromacs on Science Gateway
Gromacs on Science GatewayGromacs on Science Gateway
Gromacs on Science Gateway
 
e-Infrastructure & Data Service
e-Infrastructure & Data Servicee-Infrastructure & Data Service
e-Infrastructure & Data Service
 
Catania Science Gateway Framework
Catania Science Gateway FrameworkCatania Science Gateway Framework
Catania Science Gateway Framework
 
Portlet Framework: the Liferay way
Portlet Framework: the Liferay wayPortlet Framework: the Liferay way
Portlet Framework: the Liferay way
 
Introduction on Science Gateway
Introduction on Science GatewayIntroduction on Science Gateway
Introduction on Science Gateway
 
Introduction on Science Gateway
Introduction on Science GatewayIntroduction on Science Gateway
Introduction on Science Gateway
 
Science Gateways: one portal, many e-Infrastructures and related services
Science Gateways: one portal, many e-Infrastructures and related servicesScience Gateways: one portal, many e-Infrastructures and related services
Science Gateways: one portal, many e-Infrastructures and related services
 

Dernier

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Dernier (20)

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

Web Applications Development

  • 1. Web Application Development Introduction to application servers, web applications and portlets Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 2. Outline  Scenario  Use Case  Portlet Develop  Hostname porltlet  Catania Grid Engine API Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 3. Scenario JSR 168/268 JSR 168/268 JSR 168/268 JSR 168/268 Catania Science Gateway Framework GRID CLOUD Local Riccardo Rotondo Tutorial on Cluster Science Gateways, Roma, 04.06.2013
  • 4. Web enviroment  Application Server (Glassfish)  Web application working as Portlet Container JSR 168/268 JSR 168/268 (Liferay) JSR 168/268 JSR 168/268  Portlet (a custom application designed under users needs) Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 5. 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. Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 6. Most popular application servers http://plumbr.eu/blog/most-popular-application-servers Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 7. 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 Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 8. 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 Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 10. 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. Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 11. Generic Porlets Life Cycle YES NO End of Services? Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 12. Generic Porltlets Interface Method Class GenericPortlets { init (PortletConfig); processAction (ActionRequest, ActionResponse); render (RenderRequest, RenderResponse); destroy(); doView (Request, Response); doEdit (Reuqest, Response); doHelp (Request, Response); } Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 13. Portlet Mode  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. Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 16. Portlets  Standard JSR168/286  Interaction between jsp pages and java code Application Server (Glassfish) JSP page <jsp:useBean <form … > Java code Class <you portlet> Extends GenericPortlet … <input … /> </form>  JSP uses <form… statements to send parameters to Java code  Java code extends class GenericPortlet overriding methods:   Init, doView, doHelp, doEdit, processAction Java code uses 2 Classes to exchange data from/to JSPs Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 17. Portlet files (root) build.xml Used by ‘ant’ to compile and deploy the portlet docroot/ WEB_INF/ css/ images/ js/ jsp_page_1.jsp … jsp_page_n.jsp Define here JSP’s styles JSP image files JavaScript files Portlet JSP pages Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 18. Portlet files (docroot) WEB_INF/ Used to define database and other glassfish-web.xml resources settings web.xml lib/ Jar Library directory (local scope) Job/ Job files (Custom dir) liferay-display.xml liferay-plugin-package.properties Portlet liferay-portlet.xml configuration files portlet.xml src/ Java source files <package_name>/code.java tld/ XML structure file Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 19. Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 20. Building environment  Get Liferay with Glassfish  Customising Liferay installation (database connection)  Get Liferay plug-in SDK  Configuring Netbeans (optional) Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 21. Deploying first portlet       Understanding ant scripts Creating “hello world” portlet Understanding portlet files Compiling porltet Deploying porlet Understading portlet management on the server Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 22. References  Liferay: https://www.liferay.com  Liferay Bundles: https://www.liferay.com/downloads/liferayportal/available-releases  Liferay Plugin SDK: https://www.liferay.com/downloads/liferayportal/additional-files  Netbeans: https://netbeans.org  Netbeans liferay plugin: https://contrib.netbeans.org/portalpack/ Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013
  • 23. Questions ? Riccardo Rotondo Tutorial on Science Gateways, Roma, 04.06.2013