SlideShare a Scribd company logo
4
Most read
5
Most read
7
Most read
Introduction into Struts2 jQuery Grid Tags 2011 by Johannes Geppert (http://www.jgeppert.com)
Dependencies Struts2 Core and Dependencies
Struts2 JSON Plugin
Struts2 jQuery Plugin
Struts2 jQuery Grid Plugin
Architecture
Grid Action A simple Action that redirect to the grid.jsp <struts>  <package name=&quot;gridexample&quot; namespace=&quot;/&quot; extends=&quot;struts-default,json-default&quot;>  <action name=&quot;grid&quot; class=&quot;com.jgeppert.grid.example.Grid&quot;>  <result>/pages/grid.jsp</result>  </action>  </package>  </struts>  package com.jgeppert.grid.example; @ParentPackage(value = &quot;gridexample&quot;) public class GridAction extends ActionSupport { @Action(value = &quot;/grid&quot;, results = { @Result(location = &quot;/pages/grid.jsp&quot;, name = &quot;success&quot;) }) public String execute() throws Exception  { .. } } XML Configuration Annotation based Configuration
Configure your Grid in grid.jsp Which Grid caption?

More Related Content

PPTX
Introduction to node.js
PPTX
Basic Concept of Node.js & NPM
PPTX
reactJS
PPTX
Introduction to Node js
PDF
NodeJS for Beginner
PDF
Spring Framework - AOP
PPTX
Nodejs functions & modules
PPTX
Express js
Introduction to node.js
Basic Concept of Node.js & NPM
reactJS
Introduction to Node js
NodeJS for Beginner
Spring Framework - AOP
Nodejs functions & modules
Express js

What's hot (20)

PPT
PPTX
Introduction Node.js
PPTX
Introduction to Node.js
PPTX
ADP - Chapter 2 Exploring the java Servlet Technology
PPTX
Spring Framework
PPTX
Jsp presentation
PPTX
Css selectors
PPTX
Json Web Token - JWT
PPTX
Node js Introduction
PPTX
PDF
Responsive Design
PPT
Document Object Model
PPTX
Ajax
PPTX
Node.js Express
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
PDF
Angular js
PPTX
jQuery PPT
PDF
Introduction to Node JS.pdf
PPTX
Introduction to NodeJS
PPTX
Introduction Node.js
Introduction to Node.js
ADP - Chapter 2 Exploring the java Servlet Technology
Spring Framework
Jsp presentation
Css selectors
Json Web Token - JWT
Node js Introduction
Responsive Design
Document Object Model
Ajax
Node.js Express
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Angular js
jQuery PPT
Introduction to Node JS.pdf
Introduction to NodeJS
Ad

Similar to Introduction into Struts2 jQuery Grid Tags (10)

PDF
Coding Ajax
PDF
Coding Ajax
PPT
Struts 2 + Spring
PPTX
Ext JS Introduction
PDF
Orbitz and Spring Webflow Case Study
PPT
Struts,Jsp,Servlet
PPT
Strutsjspservlet
PPT
Strutsjspservlet
PPT
Jsfsunum
PPT
Ajax ons2
Coding Ajax
Coding Ajax
Struts 2 + Spring
Ext JS Introduction
Orbitz and Spring Webflow Case Study
Struts,Jsp,Servlet
Strutsjspservlet
Strutsjspservlet
Jsfsunum
Ajax ons2
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation theory and applications.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Programs and apps: productivity, graphics, security and other tools
Building Integrated photovoltaic BIPV_UPV.pdf
MYSQL Presentation for SQL database connectivity
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
The AUB Centre for AI in Media Proposal.docx
Encapsulation theory and applications.pdf
Machine Learning_overview_presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MIND Revenue Release Quarter 2 2025 Press Release
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf

Introduction into Struts2 jQuery Grid Tags

  • 1. Introduction into Struts2 jQuery Grid Tags 2011 by Johannes Geppert (http://www.jgeppert.com)
  • 2. Dependencies Struts2 Core and Dependencies
  • 7. Grid Action A simple Action that redirect to the grid.jsp <struts> <package name=&quot;gridexample&quot; namespace=&quot;/&quot; extends=&quot;struts-default,json-default&quot;> <action name=&quot;grid&quot; class=&quot;com.jgeppert.grid.example.Grid&quot;> <result>/pages/grid.jsp</result> </action> </package> </struts> package com.jgeppert.grid.example; @ParentPackage(value = &quot;gridexample&quot;) public class GridAction extends ActionSupport { @Action(value = &quot;/grid&quot;, results = { @Result(location = &quot;/pages/grid.jsp&quot;, name = &quot;success&quot;) }) public String execute() throws Exception { .. } } XML Configuration Annotation based Configuration
  • 8. Configure your Grid in grid.jsp Which Grid caption?
  • 9. Do you need a Pager or Navigator?
  • 10. How many Rows should be displayed?
  • 11. How is the URL to your JSON Action and which is the Name of your gridModel Attribute? <sjg:grid id=&quot;customerstable&quot; caption=&quot;Customers (Editable/Multiselect)&quot; pager=&quot;true&quot; navigator=&quot;true&quot; gridModel=&quot;gridModel&quot; rowList=&quot;10,15,20&quot; rowNum=&quot;15&quot; editurl=&quot;%{editurl}&quot; multiselect=&quot;true&quot; viewrecords=&quot;true&quot; > <sjg:gridColumn … /> </sjg:grid>
  • 12. Configure your Grid Columns in grid.jsp Is Column editable?
  • 13. Are there Edit Rules?
  • 14. Is Column searchable or sortable?
  • 15. Which formatter (date, currency, custum, …) <sjg:gridColumn name=&quot;creditlimit&quot; index=&quot;creditlimit&quot; title=&quot;Credit Limit&quot; align=&quot;right&quot; editable=&quot;true&quot; editrules=&quot;{ number: true, required: true, minValue : 100.0, maxValue : 1000000.0 }&quot; formatter=&quot;currency&quot; sortable=&quot;true&quot; search=&quot;true&quot; searchoptions=&quot;{sopt:['eq','ne','lt','gt']}&quot; />
  • 16. JSON Action The JSON Action is your data provider
  • 17. Implement Logic for sorting and search data here <struts> <package name=&quot;gridexample&quot; namespace=&quot;/&quot; extends=&quot;struts-default,json-default&quot;> <action name=&quot;grid&quot; class=&quot;com.jgeppert.grid.example.Grid&quot;> <result>/pages/grid.jsp</result> </action> <action name=&quot;json-table&quot; class=&quot;com.jgeppert.grid.example. JsonTable &quot;> <result name=”success” type=”json” /> </action> </package> </struts> package com.jgeppert.grid.example; @ParentPackage(value = &quot;gridexample&quot;) @Result(type = &quot;json&quot;) public class JsonTable extends ActionSupport { private List<Customers> gridModel; public String getJSON() { return execute(); } public String execute() throws Exception { gridModel = customersDao.find() } public List<Customers> getGridModel() { return gridModel; } } XML Configuration Annotation based Configuration
  • 18. Resources Google (struts2 jquery grid) http://www.google.de/search?q=struts2+jquery+grid
  • 19. Struts2 jQuery Project https://code.google.com/p/struts2-jquery/
  • 21. Struts2 jQuery Showcase http://www.weinfreund.de/struts2-jquery-showcase/index.action
  • 24. Problems and Questions -> User Group http://groups.google.com/group/struts2-jquery/
  • 25. Bugs and Issues https://code.google.com/p/struts2-jquery/issues/list