Using Spreadsheet in JSP"

From Documentation
 
(11 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
{{ZSS EE}}
 
{{ZSS EE}}
  
= Download ZSS JSP Example Project =
+
ZK Spreadsheet can also be embedded in a JSP by spreadsheet custom tag to empower JSP with AJAX. Spreadsheet JSP tag works much the same way as ZK Spreadsheet ZUL component tag does within a ZK application with support for all the attributes and events. You can just download the example project to experience it. Furthermore, if you want a DOM element can interact with Spreadsheet, you can send your own AJAX request in Javascript or use [http://jquery.com JQuery]. Then handle AJAX request by yourself with Spreadsheet API we mentioned in [[ZK_Spreadsheet_Essentials_3/Working_with_Spreadsheet| Working with Spreadsheet]]. We will demonstrate the usage with an example application.
If you want to run ZK spreadsheet JSP demo in your local site, just [http:// download the example project WAR file] and deploy to your application server.  
 
  
= Create and Run a JSP Project =
 
  
Follow instructions in [[ZK Spreadsheet Essentials 3>Working with Spreadsheet>Setting Up Environment]] to create a "dynamic web project" or a "maven project" named '''myzssjsp'''.
 
  
* make sure zssjsp.jar exist.
 
* create an Excel file
 
* create a jsp, index.jsp
 
  
deploy to your application and visit index.jsp
 
  
= usage in JSP =
+
{{ZKSpreadsheetEssentials3HeadingToc}}
 
+
{{ZKSpreadsheetEssentialsPageFooter}}
 
 
= example =
 

Latest revision as of 06:53, 22 August 2013


Using Spreadsheet in JSP





Available in ZK Spreadsheet EE only

ZK Spreadsheet can also be embedded in a JSP by spreadsheet custom tag to empower JSP with AJAX. Spreadsheet JSP tag works much the same way as ZK Spreadsheet ZUL component tag does within a ZK application with support for all the attributes and events. You can just download the example project to experience it. Furthermore, if you want a DOM element can interact with Spreadsheet, you can send your own AJAX request in Javascript or use JQuery. Then handle AJAX request by yourself with Spreadsheet API we mentioned in Working with Spreadsheet. We will demonstrate the usage with an example application.





All source code listed in this book is at Github.


Last Update : 2013/08/22

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.