package coreservlets;

import javax.servlet.http.*;
import org.apache.struts.action.*;

/** Weryfikacja poprawności jest wykonywana w komponencie bean formularza,
 *  dlatego klasa Action przekazuje żądanie jedynie na podstawie warunku "success".
 *  <P>
 *  Taken from Core Servlets and JavaServer Pages Volume II
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://volume2.coreservlets.com/.
 *  (C) 2007 Marty Hall, Larry Brown, and Yaakov Chaikin;
 *  may be freely used or adapted.
 */

public class ShowSampleAction extends Action {
  public ActionForward execute(ActionMapping mapping,
                               ActionForm form,
                               HttpServletRequest request,
                               HttpServletResponse response)
      throws Exception {
    return(mapping.findForward("success"));
  }
}
