6,6 → 6,8 |
import org.apache.struts.action.ActionForm; |
import org.apache.struts.action.ActionForward; |
import org.apache.log4j.Logger; |
import ak.photoalbum.logic.Logic; |
import ak.photoalbum.logic.IndexEntry; |
|
public final class PageAction |
extends BaseAction |
17,6 → 19,7 |
throws Exception |
{ |
PathForm theForm = (PathForm)form; |
String branch = theForm.getBranch(); |
String page = theForm.getPath(); |
IndexEntry entry = new IndexEntry(); |
IndexEntry index = new IndexEntry(); |
27,7 → 30,7 |
if(page == null) page = ""; // the images root |
|
logger.info("get page " + page); |
Logic.getLogic().getEntry(page, entry, index, prev, current, next); |
Logic.getLogic().getEntry(branch, page, entry, index, prev, current, next); |
|
request.setAttribute("page", page); |
request.setAttribute("entry", entry); |