FileDocCategorySizeDatePackage
GetIdeOptionsAction.javaAPI DocExample1313Sun May 02 23:05:20 BST 2004com.oreilly.strutsckbk

GetIdeOptionsAction

public final class GetIdeOptionsAction extends org.apache.struts.action.Action

Fields Summary
Constructors Summary
Methods Summary
public org.apache.struts.action.ActionForwardexecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

    	MyForm myForm = (MyForm) form;
    	String language = myForm.getLanguage();
    	ArrayList ides = new ArrayList();
    	if (language.equals("Java")) {
    		ides.add(new LabelValueBean("Net Beans","Net Beans"));
    		ides.add(new LabelValueBean("Eclipse", "Eclipse"));
    		ides.add(new LabelValueBean("jEdit", "jEdit"));    		
    	}
    	else if (language.equals("C-Sharp")) {
    		ides.add(new LabelValueBean("Sharp Develop", "Sharp Develop"));
    		ides.add(new LabelValueBean("Visual Studio", "Visual Studio"));
    	}
      myForm.setIdes( ides );

    	// Forward control to the specified success URI
    	return (mapping.findForward("success"));