SlideShare uma empresa Scribd logo
1 de 32
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]

Mais conteúdo relacionado

Mais procurados

Ajax Tags Advanced
Ajax Tags AdvancedAjax Tags Advanced
Ajax Tags Advanced
AkramWaseem
 
15 expression-language
15 expression-language15 expression-language
15 expression-language
snopteck
 
11 page-directive
11 page-directive11 page-directive
11 page-directive
snopteck
 

Mais procurados (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
 

Destaque

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.
 
Aprender y enseñar en colaboracion
Aprender y enseñar en colaboracionAprender y enseñar en colaboracion
Aprender y enseñar en colaboracion
Teraputa
 
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
Aris Santos
 
Liferay Training Struts Portlet
Liferay Training Struts PortletLiferay Training Struts Portlet
Liferay Training Struts Portlet
Saikrishna Basetti
 
Computer Generations
Computer GenerationsComputer Generations
Computer Generations
Aris 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
 

Destaque (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
 

Semelhante a Struts Portlet

Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran Toch
Adil Jafri
 
Krazykoder struts2 plugins
Krazykoder struts2 pluginsKrazykoder struts2 plugins
Krazykoder struts2 plugins
Krazy Koder
 
Strut2-Spring-Hibernate
Strut2-Spring-HibernateStrut2-Spring-Hibernate
Strut2-Spring-Hibernate
Jay Shah
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
Sagar Nakul
 

Semelhante a 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
 
Struts,Jsp,Servlet
Struts,Jsp,ServletStruts,Jsp,Servlet
Struts,Jsp,Servlet
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
 
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.