package com.crackwillow.struts.action;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.Globals;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import com.crackwillow.exception.ChainedException;
import com.crackwillow.exception.StackTrace;
import com.crackwillow.log.StdOut;
import com.crackwillow.struts.form.LogonDispatchUtilForm;
import com.crackwillow.struts.util.dispatch.DispatchUtil;
public final class LogonDispatchUtilAction
extends Action {
public LogonDispatchUtilAction() {
}
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException {
LogonDispatchUtilForm logonDispatchUtilForm = (LogonDispatchUtilForm)form;
ActionForward forward = null;
try {
forward = new DispatchUtil().dispatch(this,mapping,form,request,response);
} catch (Exception e) {
}
StdOut.log("log.button","forward = " + forward);
return forward;
}
public ActionForward create(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException {
LogonDispatchUtilForm logonDispatchUtilForm = (LogonDispatchUtilForm)form;
String password = logonDispatchUtilForm.getPassword();
String username = logonDispatchUtilForm.getUsername();
return new ActionForward(mapping.getInput());
}
public ActionForward retrieve(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException {
LogonDispatchUtilForm logonDispatchUtilForm = (LogonDispatchUtilForm)form;
String password = logonDispatchUtilForm.getPassword();
String username = logonDispatchUtilForm.getUsername();
return new ActionForward(mapping.getInput());
}
public ActionForward update(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException {
LogonDispatchUtilForm logonDispatchUtilForm = (LogonDispatchUtilForm)form;
String password = logonDispatchUtilForm.getPassword();
String username = logonDispatchUtilForm.getUsername();
return new ActionForward(mapping.getInput());
}
public ActionForward delete(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException {
LogonDispatchUtilForm logonDispatchUtilForm = (LogonDispatchUtilForm)form;
String password = logonDispatchUtilForm.getPassword();
String username = logonDispatchUtilForm.getUsername();
return new ActionForward(mapping.getInput());
}
} ///;-) Michael McGrady HomeSites