FileDocCategorySizeDatePackage
LoginAction.javaAPI DocExample820Thu Jul 01 09:42:28 BST 2004com.oreilly.strutsckbk.ch07

LoginAction

public class LoginAction 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)

        String name = (String) PropertyUtils.getSimpleProperty(form, "name");
        User user = new User();
        user.setName(name);
        request.getSession().setAttribute("user", user);
		return mapping.findForward("success");