Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1252 → Rev 1257

/PhotoAlbum/trunk/webapp/cache.html
0,0 → 1,47
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Cache Management</title>
<style type="text/css">
input[type=submit] { width:100%; }
input[type=text] { width:100%; }
</style>
</head>
 
<body>
 
<h1>Cache Management</h1>
 
<form action="cache.do" method=GET>
<table>
<tr>
<td>Branch:</td>
<td><input type=text name=branch></td>
</tr>
<tr>
<td><input type=submit name=action value=reload></td>
<td>reload cache from disk and delete old files from it</td>
</tr>
<tr>
<td><input type=submit name=action value=delete></td>
<td>delete cache from disk</td>
</tr>
<tr>
<td><input type=submit name=action value=build></td>
<td>build cache for new and changed files only</td>
</tr>
<tr>
<td><input type=submit name=action value=rebuild></td>
<td>rebuild cache for all files</td>
</tr>
</table>
</form>
 
<p><em>Note:</em> (re)build of cache with a lot of images may take a really long time.</p>
 
</body>
 
</html>
 
/PhotoAlbum/trunk/webapp/WEB-INF/struts-config.xml
15,6 → 15,11
name="indexForm"
type="ak.photoalbum.webapp.IndexForm"
/>
 
<form-bean
name="cacheForm"
type="ak.photoalbum.webapp.CacheForm"
/>
</form-beans>
 
<global-forwards>
82,8 → 87,11
/>
 
<action
path="/buildCache"
type="ak.photoalbum.webapp.BuildCacheAction"
path="/cache"
type="ak.photoalbum.webapp.CacheAction"
name="cacheForm"
validate="true"
scope="request"
>
<forward name="success" path="/cacheOk.jsp"/>
</action>
/PhotoAlbum/trunk/webapp/cacheOk.jsp
6,13 → 6,15
<html>
 
<head>
<title>Build Cache: OK</title>
<title>Cache <bean:write name="cacheForm" property="action" />: OK</title>
</head>
 
<body bgcolor="white">
 
<h1>Build Cache: OK</h1>
<h1>Cache <bean:write name="cacheForm" property="action" />: OK</h1>
 
<p><a href="cache.html">cache management</a></p>
 
</body>
 
</html>