1 4 package com.opensymphony.webwork.views.freemarker; 5 6 import com.opensymphony.xwork.ActionSupport; 7 8 import java.util.ArrayList ; 9 import java.util.List ; 10 11 12 15 public class TestAction extends ActionSupport { 16 18 21 public TestAction() { 22 super(); 23 } 24 25 27 public List getBeanList() { 28 List list = new ArrayList (); 29 list.add(new TestBean("one", "1")); 30 list.add(new TestBean("two", "2")); 31 list.add(new TestBean("three", "3")); 32 33 return list; 34 } 35 36 public List getStringList() { 37 List list = new ArrayList (); 38 list.add("one"); 39 list.add("two"); 40 list.add("three"); 41 42 return list; 43 } 44 } 45 | Popular Tags |