SlideShare a Scribd company logo
Struts Portlet Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, Inc.
Objective ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Key Concepts ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why use Struts? ,[object Object],[object Object],[object Object],[object Object]
Why use Tiles? ,[object Object],[object Object],[object Object],[object Object],header footer navigation main content header footer navigation main content header footer navigation main content header footer navigation main content header footer navigation main content Template
High Level Overview ,[object Object],[object Object],Controller JSP URL
Example ,[object Object],[object Object],[object Object],[object Object],MainServlet *.jsp view-action
Detailed View struts-config.xml path=“ /ext/library/view ” forward=“ portlet.ext.library.view ”  tiles-defs.xml name=“ portlet.ext.library.view ” value=“ /portlet/ext/library/view.jsp ” portlet-ext.xml <name>view-action</name> <value> /ext/library/view </value> view.jsp /portlet/ext/library/view.jsp
Directory Structure ,[object Object],[object Object],[object Object],[object Object]
portlet-ext.xml ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
liferay-portlet-ext.xml ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
<struts-path> ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
struts-config.xml ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
tiles-defs.xml ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Create the JSP ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Deploy the Files to Tomcat ,[object Object],[object Object],[object Object],[object Object],[object Object]
Check the Tomcat Directory ,[object Object],[object Object],[object Object]
Final Steps ,[object Object],[object Object],[object Object],[object Object]
Key Concepts portlet-ext.xml struts-config.xml tiles-defs.xml view.jsp
portlet-ext.xml <name>view-action</name> <value> /ext/library/view </value> struts-config.xml path=“ /ext/library/view ” forward=“ portlet.ext.library.view ” tiles-defs.xml name=“ portlet.ext.library.view ” value=“ /portlet/ext/library/view.jsp ” view.jsp /portlet/ext/library/view.jsp
Objectives ,[object Object],[object Object],[object Object],[object Object]
init.jsp ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
view.jsp ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Set the Portlet Title ,[object Object],[object Object],[object Object],[object Object],[object Object]
Add the Portlet to a Category ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Review of Key Concepts portlet-ext.xml struts-config.xml tiles-defs.xml view.jsp
portlet-ext.xml <name>view-action</name> <value> /ext/library/view </value> struts-config.xml path=“ /ext/library/view ” forward=“ portlet.ext.library.view ” tiles-defs.xml name=“ portlet.ext.library.view ” value=“ /portlet/ext/library/view.jsp ” view.jsp /portlet/ext/library/view.jsp
Review of <struts-path> ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Revision History ,[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
fishwarter
 
Django
DjangoDjango
Django
Ivan Widodo
 
Articulo java web
Articulo java webArticulo java web
Articulo java web
I.S.T. Santo Domingo
 
Ajax Tags Advanced
Ajax Tags AdvancedAjax Tags Advanced
Ajax Tags AdvancedAkramWaseem
 
15 expression-language
15 expression-language15 expression-language
15 expression-languagesnopteck
 
PHP MVC
PHP MVCPHP MVC
KMUTNB - Internet Programming 5/7
KMUTNB - Internet Programming 5/7KMUTNB - Internet Programming 5/7
KMUTNB - Internet Programming 5/7
phuphax
 
Building Content Types with Dexterity
Building Content Types with DexterityBuilding Content Types with Dexterity
Building Content Types with Dexterity
David Glick
 
A Dexterity Intro for Recovering Archetypes Addicts
A Dexterity Intro for Recovering Archetypes AddictsA Dexterity Intro for Recovering Archetypes Addicts
A Dexterity Intro for Recovering Archetypes Addicts
David Glick
 
Custom module and theme development in Drupal7
Custom module and theme development in Drupal7Custom module and theme development in Drupal7
Custom module and theme development in Drupal7
marif4pk
 
Migrate yourself. code -> module -> mind
Migrate yourself. code -> module -> mindMigrate yourself. code -> module -> mind
Migrate yourself. code -> module -> mind
Valentine Matsveiko
 
Dexterity in the Wild
Dexterity in the WildDexterity in the Wild
Dexterity in the Wild
David Glick
 
Html 5 in a big nutshell
Html 5 in a big nutshellHtml 5 in a big nutshell
Html 5 in a big nutshell
Lennart Schoors
 
11 page-directive
11 page-directive11 page-directive
11 page-directivesnopteck
 
Using Renderless Components in Vue.js during your software development.
Using Renderless Components in Vue.js during your software development.Using Renderless Components in Vue.js during your software development.
Using Renderless Components in Vue.js during your software development.
tothepointIT
 
Jsp And Jdbc
Jsp And JdbcJsp And Jdbc
Jsp And Jdbc
Roy Antony Arnold G
 
Zend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_ToolZend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_Tool
Gordon Forsythe
 
Php frameworks
Php frameworksPhp frameworks
Php frameworks
Anil Kumar Panigrahi
 

What's hot (19)

The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
 
Django
DjangoDjango
Django
 
Articulo java web
Articulo java webArticulo java web
Articulo java web
 
Ajax Tags Advanced
Ajax Tags AdvancedAjax Tags Advanced
Ajax Tags Advanced
 
15 expression-language
15 expression-language15 expression-language
15 expression-language
 
PHP MVC
PHP MVCPHP MVC
PHP MVC
 
KMUTNB - Internet Programming 5/7
KMUTNB - Internet Programming 5/7KMUTNB - Internet Programming 5/7
KMUTNB - Internet Programming 5/7
 
Building Content Types with Dexterity
Building Content Types with DexterityBuilding Content Types with Dexterity
Building Content Types with Dexterity
 
A Dexterity Intro for Recovering Archetypes Addicts
A Dexterity Intro for Recovering Archetypes AddictsA Dexterity Intro for Recovering Archetypes Addicts
A Dexterity Intro for Recovering Archetypes Addicts
 
Custom module and theme development in Drupal7
Custom module and theme development in Drupal7Custom module and theme development in Drupal7
Custom module and theme development in Drupal7
 
Migrate yourself. code -> module -> mind
Migrate yourself. code -> module -> mindMigrate yourself. code -> module -> mind
Migrate yourself. code -> module -> mind
 
Dexterity in the Wild
Dexterity in the WildDexterity in the Wild
Dexterity in the Wild
 
Html 5 in a big nutshell
Html 5 in a big nutshellHtml 5 in a big nutshell
Html 5 in a big nutshell
 
11 page-directive
11 page-directive11 page-directive
11 page-directive
 
Ext 0523
Ext 0523Ext 0523
Ext 0523
 
Using Renderless Components in Vue.js during your software development.
Using Renderless Components in Vue.js during your software development.Using Renderless Components in Vue.js during your software development.
Using Renderless Components in Vue.js during your software development.
 
Jsp And Jdbc
Jsp And JdbcJsp And Jdbc
Jsp And Jdbc
 
Zend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_ToolZend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_Tool
 
Php frameworks
Php frameworksPhp frameworks
Php frameworks
 

Viewers also liked

Portlet Programming Using Jsr 168
Portlet Programming Using Jsr 168Portlet Programming Using Jsr 168
Portlet Programming Using Jsr 168
Saikrishna Basetti
 
2 Day Rail
2 Day Rail2 Day Rail
2 Day Rail
Gary_Day
 
Seven Digit Apprentice Club
Seven Digit Apprentice Club Seven Digit Apprentice Club
Seven Digit Apprentice Club
Seven Digit
 
16 tips usahaniaga kaum cina
16 tips usahaniaga kaum cina16 tips usahaniaga kaum cina
16 tips usahaniaga kaum cina
abangcikgu
 
Automated language translation … a solution to public sector communication re...
Automated language translation … a solution to public sector communication re...Automated language translation … a solution to public sector communication re...
Automated language translation … a solution to public sector communication re...Language Weaver, Inc.
 
Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION
Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION  Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION
Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION
Teraputa
 
קריטריונים ינואר 2012
קריטריונים   ינואר 2012קריטריונים   ינואר 2012
קריטריונים ינואר 2012
Anashim-cp.org.il
 
Aprender y enseñar en colaboracion
Aprender y enseñar en colaboracionAprender y enseñar en colaboracion
Aprender y enseñar en colaboracionTeraputa
 
Megatends.plus.faith
Megatends.plus.faithMegatends.plus.faith
Megatends.plus.faith
Century College
 
Ie – 514 Current Trends, Problems And Issues
Ie – 514 Current Trends, Problems And IssuesIe – 514 Current Trends, Problems And Issues
Ie – 514 Current Trends, Problems And IssuesAris Santos
 
Liferay Training Struts Portlet
Liferay Training Struts PortletLiferay Training Struts Portlet
Liferay Training Struts PortletSaikrishna Basetti
 
Minds&More presentation Sales Summit Brussels 2016
Minds&More presentation Sales Summit Brussels 2016Minds&More presentation Sales Summit Brussels 2016
Minds&More presentation Sales Summit Brussels 2016
Ernst-Jan Luten
 
Computer Generations
Computer GenerationsComputer Generations
Computer GenerationsAris Santos
 
Artificial respiration by a.s.a.suvec
Artificial respiration by a.s.a.suvecArtificial respiration by a.s.a.suvec
Artificial respiration by a.s.a.suvec
suvec
 

Viewers also liked (17)

Portlet Programming Using Jsr 168
Portlet Programming Using Jsr 168Portlet Programming Using Jsr 168
Portlet Programming Using Jsr 168
 
2 Day Rail
2 Day Rail2 Day Rail
2 Day Rail
 
Seven Digit Apprentice Club
Seven Digit Apprentice Club Seven Digit Apprentice Club
Seven Digit Apprentice Club
 
Presentation3
Presentation3Presentation3
Presentation3
 
16 tips usahaniaga kaum cina
16 tips usahaniaga kaum cina16 tips usahaniaga kaum cina
16 tips usahaniaga kaum cina
 
Automated language translation … a solution to public sector communication re...
Automated language translation … a solution to public sector communication re...Automated language translation … a solution to public sector communication re...
Automated language translation … a solution to public sector communication re...
 
Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION
Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION  Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION
Capitulo 4. APRENDER Y ENSEÑAR EN COLABORACION
 
קריטריונים ינואר 2012
קריטריונים   ינואר 2012קריטריונים   ינואר 2012
קריטריונים ינואר 2012
 
Suegra
SuegraSuegra
Suegra
 
Aprender y enseñar en colaboracion
Aprender y enseñar en colaboracionAprender y enseñar en colaboracion
Aprender y enseñar en colaboracion
 
Megatends.plus.faith
Megatends.plus.faithMegatends.plus.faith
Megatends.plus.faith
 
Ie – 514 Current Trends, Problems And Issues
Ie – 514 Current Trends, Problems And IssuesIe – 514 Current Trends, Problems And Issues
Ie – 514 Current Trends, Problems And Issues
 
Acid arahidonic
Acid arahidonicAcid arahidonic
Acid arahidonic
 
Liferay Training Struts Portlet
Liferay Training Struts PortletLiferay Training Struts Portlet
Liferay Training Struts Portlet
 
Minds&More presentation Sales Summit Brussels 2016
Minds&More presentation Sales Summit Brussels 2016Minds&More presentation Sales Summit Brussels 2016
Minds&More presentation Sales Summit Brussels 2016
 
Computer Generations
Computer GenerationsComputer Generations
Computer Generations
 
Artificial respiration by a.s.a.suvec
Artificial respiration by a.s.a.suvecArtificial respiration by a.s.a.suvec
Artificial respiration by a.s.a.suvec
 

Similar to Struts Portlet

Spring Surf 101
Spring Surf 101Spring Surf 101
Spring Surf 101
Alfresco Software
 
Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran TochAdil Jafri
 
Solr Presentation
Solr PresentationSolr Presentation
Solr Presentation
Gaurav Verma
 
Krazykoder struts2 plugins
Krazykoder struts2 pluginsKrazykoder struts2 plugins
Krazykoder struts2 pluginsKrazy Koder
 
Struts2
Struts2Struts2
Struts2
yuvalb
 
Jsp 01
Jsp 01Jsp 01
JSR 168 Portal - Overview
JSR 168 Portal - OverviewJSR 168 Portal - Overview
JSR 168 Portal - Overview
Vinay Kumar
 
Introducing Struts 2
Introducing Struts 2Introducing Struts 2
Introducing Struts 2
wiradikusuma
 
Component Framework Primer for JSF Users
Component Framework Primer for JSF UsersComponent Framework Primer for JSF Users
Component Framework Primer for JSF Users
Andy Schwartz
 
Strut2-Spring-Hibernate
Strut2-Spring-HibernateStrut2-Spring-Hibernate
Strut2-Spring-HibernateJay Shah
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
BG Java EE Course
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile Widgets
Ricardo Varela
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
Sagar Nakul
 
Struts,Jsp,Servlet
Struts,Jsp,ServletStruts,Jsp,Servlet
Struts,Jsp,Servlet
dasguptahirak
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet Sagar Nakul
 

Similar to Struts Portlet (20)

Ibm
IbmIbm
Ibm
 
Spring Surf 101
Spring Surf 101Spring Surf 101
Spring Surf 101
 
Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran Toch
 
Solr Presentation
Solr PresentationSolr Presentation
Solr Presentation
 
Krazykoder struts2 plugins
Krazykoder struts2 pluginsKrazykoder struts2 plugins
Krazykoder struts2 plugins
 
New Browsers
New BrowsersNew Browsers
New Browsers
 
Struts2
Struts2Struts2
Struts2
 
Facelets
FaceletsFacelets
Facelets
 
Jsp 01
Jsp 01Jsp 01
Jsp 01
 
Facelets
FaceletsFacelets
Facelets
 
JSR 168 Portal - Overview
JSR 168 Portal - OverviewJSR 168 Portal - Overview
JSR 168 Portal - Overview
 
Introducing Struts 2
Introducing Struts 2Introducing Struts 2
Introducing Struts 2
 
Component Framework Primer for JSF Users
Component Framework Primer for JSF UsersComponent Framework Primer for JSF Users
Component Framework Primer for JSF Users
 
Strut2-Spring-Hibernate
Strut2-Spring-HibernateStrut2-Spring-Hibernate
Strut2-Spring-Hibernate
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Jsfsunum
JsfsunumJsfsunum
Jsfsunum
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile Widgets
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
 
Struts,Jsp,Servlet
Struts,Jsp,ServletStruts,Jsp,Servlet
Struts,Jsp,Servlet
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
 

Struts Portlet

  • 1. Struts Portlet Copyright © 2000-2006 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission from Liferay, Inc.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. Detailed View struts-config.xml path=“ /ext/library/view ” forward=“ portlet.ext.library.view ” tiles-defs.xml name=“ portlet.ext.library.view ” value=“ /portlet/ext/library/view.jsp ” portlet-ext.xml <name>view-action</name> <value> /ext/library/view </value> view.jsp /portlet/ext/library/view.jsp
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Key Concepts portlet-ext.xml struts-config.xml tiles-defs.xml view.jsp
  • 23. portlet-ext.xml <name>view-action</name> <value> /ext/library/view </value> struts-config.xml path=“ /ext/library/view ” forward=“ portlet.ext.library.view ” tiles-defs.xml name=“ portlet.ext.library.view ” value=“ /portlet/ext/library/view.jsp ” view.jsp /portlet/ext/library/view.jsp
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. Review of Key Concepts portlet-ext.xml struts-config.xml tiles-defs.xml view.jsp
  • 30. portlet-ext.xml <name>view-action</name> <value> /ext/library/view </value> struts-config.xml path=“ /ext/library/view ” forward=“ portlet.ext.library.view ” tiles-defs.xml name=“ portlet.ext.library.view ” value=“ /portlet/ext/library/view.jsp ” view.jsp /portlet/ext/library/view.jsp
  • 31.
  • 32.