"Quickening the Pace of JSP Development" Friday, September 10, 2010
Home Products Pricing Company Contact Us Samples Download Forums Javadoc Customers
    « Form Tags »
    « I/O Tags »
    « Format Tags »
    « Utility Tags »
Grid Control - Struts Integration

Good news for all you Struts developers! Our powerful grid can now integrate with the Struts framework. In reality, there's not much to it other than binding to the grid's set of data via the <jsp:useBean> tag.

In this example, a backend Struts action retrieves the grid's data from the database and then places it in the HTTP request object. In the JSP, once the data is "bound to" using the <jsp:useBean> tag, it is then passed into the grid via the datasrc attribute. From there, all actions against the grid (e.g. sort, page) are carried out via the <dotj:form> tag. Note that it is recommended to use the <dotj:form> tag when integrating with Struts.

Customer
 
Icon Id Last Name First Name Gender Zip
 
My Icon 2 adas asdasdad F 34561
  My Icon 15 Chan Liam M 47387
  My Icon 10 Danns Allan M 04105
  My Icon 3 das dsad F 22151
  My Icon 13 Fellows Bill M 04105
Page 1 of 4 [ 1 2 3 4  ]  

Displaying page 1 - Rows 1 to 5
The above grid contains 19 records.

  Download Raw Data     Download Formatted Data
 DisplayGridAction.java   



          Back to Samples page


home : products : pricing : company : contact us : samples : download : forums : customers

Copyright © 2000-2004 dotJ Software Inc. All rights reserved.