? DataGrid.patch ? examples/web/WEB-INF ? examples/web/example7.jsp ? src/org.zip ? src/org/apache/taglibs/datagrid/Cell.java Index: examples/web/example1.jsp =================================================================== RCS file: /home/cvspublic/jakarta-taglibs-sandbox/datagrid/examples/web/example1.jsp,v retrieving revision 1.2 diff -u -r1.2 example1.jsp --- examples/web/example1.jsp 28 Jul 2004 00:54:25 -0000 1.2 +++ examples/web/example1.jsp 24 Sep 2004 05:37:22 -0000 @@ -1,370 +1,740 @@ - - - - - - - Jakarta Data Grid Taglib Example - - - -<%@ taglib uri="http://jakarta.apache.org/taglibs/datagrid-1.0" prefix="ui" %> - -<%@ page contentType="text/html"%> - -<%@ page import="java.util.ArrayList" %> - - - -<%! public static class Employee - - { - - protected String firstName; - - protected String lastName; - - protected double salary; - - protected double bonus; - - - - public String getFirstName () - - { - - return (firstName); - - } - - - - public String getLastName () - - { - - return (lastName); - - } - - - - public double getSalary () - - { - - return (salary); - - } - - - - public double getBonus () - - { - - return (bonus); - - } - - - - public void setFirstName (String newFirstName) - - { - - firstName = newFirstName; - - } - - - - public void setLastName (String newLastName) - - { - - lastName = newLastName; - - } - - - - public void setSalary (double newSalary) - - { - - salary = newSalary; - - } - - - - public void setBonus (double newBonus) - - { - - bonus = newBonus; - - } - - } - -%> - -<% ArrayList employees; - - Employee employee; - - - - employees = new ArrayList (); - - - - employee = new Employee (); - - employee.setFirstName ("Peter"); - - employee.setLastName ("Jackson"); - - employee.setSalary (120000); - - employee.setBonus (20000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("John"); - - employee.setLastName ("Woo"); - - employee.setSalary (100000); - - employee.setBonus (17000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("George"); - - employee.setLastName ("Lucas"); - - employee.setSalary (150000); - - employee.setBonus (23000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Michael"); - - employee.setLastName ("Kain"); - - employee.setSalary (100000); - - employee.setBonus (10000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("John"); - - employee.setLastName ("Doe"); - - employee.setSalary (110000); - - employee.setBonus (11000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Jim"); - - employee.setLastName ("Carrey"); - - employee.setSalary (110000); - - employee.setBonus (11000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Sean"); - - employee.setLastName ("Penn"); - - employee.setSalary (150000); - - employee.setBonus (13000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Charlize"); - - employee.setLastName ("Theron"); - - employee.setSalary (200000); - - employee.setBonus (11000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Tom"); - - employee.setLastName ("Hanks"); - - employee.setSalary (190000); - - employee.setBonus (10000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Edward"); - - employee.setLastName ("Norton"); - - employee.setSalary (180000); - - employee.setBonus (13000); - - employees.add (employee); - - - - employee = new Employee (); - - employee.setFirstName ("Gary"); - - employee.setLastName ("Oldman"); - - employee.setSalary (180000); - - employee.setBonus (13000); - - employees.add (employee); - - - - request.setAttribute ("employees", employees); - -%> - - - - - - Jakarta Data Grid Taglib Example 1 - - - - - - - - - -

Example 1

- - - - - - - -
- - - - - -