From 79a499ceec81923b39e38fa248fc5324d53bef91 Mon Sep 17 00:00:00 2001 From: knut Date: Mon, 22 Dec 2008 04:59:00 +0000 Subject: [PATCH] more portable launcher --- album.launch | 27 ++++++------------- .../forkalsrud/album/web/AlbumServlet.java | 4 +-- webapp/WEB-INF/web.xml | 2 +- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/album.launch b/album.launch index 7a4c627..07b754c 100644 --- a/album.launch +++ b/album.launch @@ -1,25 +1,14 @@ - - - - - - - - + + + - - - + + - - - - - - - - + + + diff --git a/src/org/forkalsrud/album/web/AlbumServlet.java b/src/org/forkalsrud/album/web/AlbumServlet.java index a45de0d..b3ab0a1 100644 --- a/src/org/forkalsrud/album/web/AlbumServlet.java +++ b/src/org/forkalsrud/album/web/AlbumServlet.java @@ -31,7 +31,7 @@ import com.drew.metadata.MetadataException; public class AlbumServlet extends HttpServlet { - String basePath = "/home/erik/Photos/Wedding"; + String basePath = "photos"; EntryDao dao; @Override @@ -53,7 +53,7 @@ public class AlbumServlet page = "photo"; } File file = new File(basePath + pathInfo); - System.out.println("path=" + file); +// System.out.println("path=" + file); if (!file.canRead()) { res.setStatus(HttpServletResponse.SC_FORBIDDEN); return; diff --git a/webapp/WEB-INF/web.xml b/webapp/WEB-INF/web.xml index 9f43ac3..2a7c8dc 100644 --- a/webapp/WEB-INF/web.xml +++ b/webapp/WEB-INF/web.xml @@ -29,7 +29,7 @@ album - /wedding/* + /photos/*