FileDocCategorySizeDatePackage
LoginAction.javaAPI DocExample828Mon Jul 05 15:01:16 BST 2004com.oreilly.strutsckbk.ch08

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, "username");
        User user = new User();
        user.setUsername(name);
        request.getSession().setAttribute("user", user);
		return mapping.findForward("success");