Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1249 → Rev 1250

/PhotoAlbum/trunk/src/ak/photoalbum/webapp/PathForm.java
3,25 → 3,13
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
 
public class PathForm
extends ActionForm
extends BranchForm
{
protected String branch;
protected String path;
 
public String getBranch()
{
return branch;
}
 
public void setBranch(String branch)
{
this.branch = branch;
}
 
public String getPath()
{
return path;
/PhotoAlbum/trunk/src/ak/photoalbum/webapp/BuildCacheAction.java
19,8 → 19,11
HttpServletRequest request, HttpServletResponse response)
throws Exception
{
PathForm theForm = (PathForm)form;
String branch = theForm.getBranch();
 
// FIXME: show progress bar
Logic.getLogic().buildCache();
Logic.getLogic().buildCache(branch);
 
return mapping.findForward("success");
}
/PhotoAlbum/trunk/src/ak/photoalbum/webapp/BranchForm.java
0,0 → 1,31
package ak.photoalbum.webapp;
 
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
 
public class BranchForm
extends ActionForm
{
protected String branch;
 
public String getBranch()
{
return branch;
}
 
public void setBranch(String branch)
{
this.branch = branch;
}
 
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
 
return errors;
}
}
/PhotoAlbum/trunk/src/ak/photoalbum/webapp/ServletResourceFactory.java
2,7 → 2,7
 
import java.io.InputStream;
import javax.servlet.ServletContext;
import ak.photoalbum.logic.ResourceFactory;
import ak.photoalbum.util.ResourceFactory;
 
public class ServletResourceFactory
implements ResourceFactory