diff --git a/src/org/forkalsrud/album/web/AlbumServlet.java b/src/org/forkalsrud/album/web/AlbumServlet.java index 16f538c..1657ec3 100644 --- a/src/org/forkalsrud/album/web/AlbumServlet.java +++ b/src/org/forkalsrud/album/web/AlbumServlet.java @@ -93,6 +93,7 @@ public class AlbumServlet try { res.setContentType("text/html"); req.setAttribute("entry", entry); + req.setAttribute("thmb", new Integer(640)); RequestDispatcher rd = req.getRequestDispatcher("/WEB-INF/velocity/photo.vm"); rd.forward(req, res); } catch (Exception ex) { diff --git a/webapp/WEB-INF/velocity.properties b/webapp/WEB-INF/velocity.properties new file mode 100644 index 0000000..8392748 --- /dev/null +++ b/webapp/WEB-INF/velocity.properties @@ -0,0 +1,5 @@ +velocimacro.permissions.allow.inline=true +velocimacro.permissions.allow.inline.to.replace.global=false +velocimacro.permissions.allow.inline.local.scope=true +velocimacro.context.localscope=false +velocimacro.library.autoreload=true diff --git a/webapp/WEB-INF/velocity/photo.vm b/webapp/WEB-INF/velocity/photo.vm index a5bcbd9..710c283 100644 --- a/webapp/WEB-INF/velocity/photo.vm +++ b/webapp/WEB-INF/velocity/photo.vm @@ -53,7 +53,6 @@