package action;

import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
import view.UserView;

/**
 * Struts action that makes a List of bball database options.
 */
public class ShowOptionsAction extends Action {
    public ActionForward execute( ActionMapping mapping, ActionForm form,
				  HttpServletRequest request, HttpServletResponse response)
	throws Exception {

	// Make the list of options
	ArrayList<String> options = new ArrayList<String>();
	options.add("Add Team");
	options.add("Add Player");

	// Put the options into the form and return
	((DynaActionForm)form).set( "options", options );
	return mapping.findForward( "Success" );
    }
}