Merge branch 'master' of ssh://odb/home/gitroot/album
This commit is contained in:
commit
e08d11448e
3 changed files with 6 additions and 1 deletions
|
|
@ -94,6 +94,7 @@ public class AlbumServlet
|
||||||
try {
|
try {
|
||||||
res.setContentType("text/html");
|
res.setContentType("text/html");
|
||||||
req.setAttribute("entry", entry);
|
req.setAttribute("entry", entry);
|
||||||
|
req.setAttribute("thmb", new Integer(640));
|
||||||
RequestDispatcher rd = req.getRequestDispatcher("/WEB-INF/velocity/photo.vm");
|
RequestDispatcher rd = req.getRequestDispatcher("/WEB-INF/velocity/photo.vm");
|
||||||
rd.forward(req, res);
|
rd.forward(req, res);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|
|
||||||
5
webapp/WEB-INF/velocity.properties
Normal file
5
webapp/WEB-INF/velocity.properties
Normal file
|
|
@ -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
|
||||||
|
|
@ -53,7 +53,6 @@
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
#if($entry.isFile())
|
#if($entry.isFile())
|
||||||
#set($thmb = 480)
|
|
||||||
#set($dim = $entry.thumbnail.size.scaled($thmb))
|
#set($dim = $entry.thumbnail.size.scaled($thmb))
|
||||||
#set($thpath = $mapper.map(${entry.thumbnail.getPath()}))
|
#set($thpath = $mapper.map(${entry.thumbnail.getPath()}))
|
||||||
#set($enpath = $mapper.map(${entry.getPath()}))
|
#set($enpath = $mapper.map(${entry.getPath()}))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue