KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > views > freemarker > TestAction


1 /* * Copyright (c) 2002-2003 by OpenSymphony
2  * All rights reserved.
3  */

4 package com.opensymphony.webwork.views.freemarker;
5
6 import com.opensymphony.xwork.ActionSupport;
7
8 import java.util.ArrayList JavaDoc;
9 import java.util.List JavaDoc;
10
11
12 /**
13  * @author CameronBraid
14  */

15 public class TestAction extends ActionSupport {
16     //~ Constructors ///////////////////////////////////////////////////////////
17

18     /**
19      *
20      */

21     public TestAction() {
22         super();
23     }
24
25     //~ Methods ////////////////////////////////////////////////////////////////
26

27     public List JavaDoc getBeanList() {
28         List JavaDoc list = new ArrayList JavaDoc();
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 JavaDoc getStringList() {
37         List JavaDoc list = new ArrayList JavaDoc();
38         list.add("one");
39         list.add("two");
40         list.add("three");
41
42         return list;
43     }
44 }
45
Popular Tags