Subversion Repositories general

Rev

Rev 1249 | Rev 1256 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package ak.photoalbum.webapp;

import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.log4j.Logger;
import ak.photoalbum.logic.Logic;

public final class BuildCacheAction
  extends Action
{
  private static final Logger logger = Logger.getLogger(IndexAction.class);

  public ActionForward execute(ActionMapping mapping, ActionForm form,
     HttpServletRequest request, HttpServletResponse response)
    throws Exception
  {
    PathForm theForm = (PathForm)form;
    String   branch  = theForm.getBranch();

        // FIXME: show progress bar
    Logic.getLogic().buildCache(branch);

    return mapping.findForward("success");
  }
}