0,0 → 1,27 |
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 |
{ |
// FIXME: show progress bar |
Logic.getLogic().buildCache(); |
|
return mapping.findForward("success"); |
} |
} |