TestAction.java :  » J2EE » webwork-2.2.6 » com » opensymphony » webwork » views » freemarker » Java Open Source

Java Open Source » J2EE » webwork 2.2.6 
webwork 2.2.6 » com » opensymphony » webwork » views » freemarker » TestAction.java
/* * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package com.opensymphony.webwork.views.freemarker;

import com.opensymphony.xwork.ActionSupport;

import java.util.ArrayList;
import java.util.List;


/**
 * @author CameronBraid
 */
public class TestAction extends ActionSupport {

    /**
     *
     */
    public TestAction() {
        super();
    }


    public List getBeanList() {
        List list = new ArrayList();
        list.add(new TestBean("one", "1"));
        list.add(new TestBean("two", "2"));
        list.add(new TestBean("three", "3"));

        return list;
    }

    public List getStringList() {
        List list = new ArrayList();
        list.add("one");
        list.add("two");
        list.add("three");

        return list;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.