Subversion Repositories general

Rev

Rev 1250 | Rev 1257 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
936 dev 1
package ak.photoalbum.webapp;
2
 
3
import java.util.List;
4
import javax.servlet.http.HttpServletRequest;
5
import javax.servlet.http.HttpServletResponse;
6
import org.apache.struts.action.Action;
7
import org.apache.struts.action.ActionMapping;
8
import org.apache.struts.action.ActionForm;
9
import org.apache.struts.action.ActionForward;
10
import org.apache.log4j.Logger;
1249 dev 11
import ak.photoalbum.logic.Logic;
936 dev 12
 
13
public final class BuildCacheAction
14
  extends Action
15
{
16
  private static final Logger logger = Logger.getLogger(IndexAction.class);
17
 
18
  public ActionForward execute(ActionMapping mapping, ActionForm form,
19
     HttpServletRequest request, HttpServletResponse response)
20
    throws Exception
21
  {
1250 dev 22
    PathForm theForm = (PathForm)form;
23
    String   branch  = theForm.getBranch();
24
 
1074 dev 25
  	// FIXME: show progress bar
1250 dev 26
    Logic.getLogic().buildCache(branch);
936 dev 27
 
28
    return mapping.findForward("success");
29
  }
30
}