FileDocCategorySizeDatePackage
LogonAction.javaAPI DocExample826Tue Oct 26 00:10:58 BST 2004com.oreilly.strutsckbk.ch14

LogonAction

public class LogonAction 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");