You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by st...@apache.org on 2004/11/07 21:28:18 UTC

svn commit: rev 56863 - in gump/dynagump: src/java src/java/org/apache/gump/dynagump webapp webapp/WEB-INF

Author: stefano
Date: Sun Nov  7 12:28:17 2004
New Revision: 56863

Modified:
   gump/dynagump/src/java/hibernate.cfg.xml
   gump/dynagump/src/java/org/apache/gump/dynagump/PageServlet.java
   gump/dynagump/webapp/WEB-INF/dynagump.properties
   gump/dynagump/webapp/index.vt
Log:
some little tweaks


Modified: gump/dynagump/src/java/hibernate.cfg.xml
==============================================================================
--- gump/dynagump/src/java/hibernate.cfg.xml	(original)
+++ gump/dynagump/src/java/hibernate.cfg.xml	Sun Nov  7 12:28:17 2004
@@ -19,7 +19,7 @@
 		<property name="dialect">
 			net.sf.hibernate.dialect.MySQLDialect
 		</property>
-		<property name="hibernate.show_sql">false</property>
+		<property name="hibernate.show_sql">true</property>
 		<property name="hibernate.use_outer_join">true</property>
 		<property name="hibernate.transaction.factory_class">
 			net.sf.hibernate.transaction.JTATransactionFactory

Modified: gump/dynagump/src/java/org/apache/gump/dynagump/PageServlet.java
==============================================================================
--- gump/dynagump/src/java/org/apache/gump/dynagump/PageServlet.java	(original)
+++ gump/dynagump/src/java/org/apache/gump/dynagump/PageServlet.java	Sun Nov  7 12:28:17 2004
@@ -11,7 +11,7 @@
 import net.sf.hibernate.Session;
 import net.sf.hibernate.Transaction;
 
-import org.apache.gump.dynagump.model.dao.HostsDAO;
+import org.apache.gump.dynagump.model.dao.WorkspacesDAO;
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.VelocityEngine;
 import org.apache.velocity.exception.ResourceNotFoundException;
@@ -47,16 +47,16 @@
         String template = uri.substring(start, end);
 
         VelocityContext vcContext = new VelocityContext();
-        vcContext.put("message", template);
+        vcContext.put("current", "Workspaces");
 
         Session session = null;
         Transaction transaction = null;
         
         try {
-            HostsDAO dao = new HostsDAO();
-            List hosts = dao.findAll();
+            WorkspacesDAO workspacesDAO = new WorkspacesDAO();
+            List workspaces = workspacesDAO.findAll();
 
-            vcContext.put("hosts", hosts);
+            vcContext.put("workspaces", workspaces);
             
             res.setContentType("text/html; charset=UTF-8");		
 		

Modified: gump/dynagump/webapp/WEB-INF/dynagump.properties
==============================================================================
--- gump/dynagump/webapp/WEB-INF/dynagump.properties	(original)
+++ gump/dynagump/webapp/WEB-INF/dynagump.properties	Sun Nov  7 12:28:17 2004
@@ -6,11 +6,11 @@
 # Log4j Properties
 #
 log4j.rootLogger=info, stdout
-log4j.logger.Velocity=info, stdout
+#log4j.logger.Velocity=info, stdout
 
 # Log format to standard out
-#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 
 # Pattern to output the caller's file name and line number.
-#log4j.appender.stdout.layout.ConversionPattern=[%p:%c] %m%n
\ No newline at end of file
+log4j.appender.stdout.layout.ConversionPattern=[%p:%c] %m%n
\ No newline at end of file

Modified: gump/dynagump/webapp/index.vt
==============================================================================
--- gump/dynagump/webapp/index.vt	(original)
+++ gump/dynagump/webapp/index.vt	Sun Nov  7 12:28:17 2004
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en" xml:lang="en">
 <head>
- <title>Apache Gump | Runs</title>
+ <title>Apache Gump | $current</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <link rel="stylesheet" type="text/css" href="styles/print.css" media="print">
 <link rel="stylesheet" type="text/css" href="styles/base/content.css" media="all">
 <link rel="stylesheet" type="text/css" href="styles/cavendish/content.css" title="Cavendish" media="all">
 <link rel="stylesheet" type="text/css" href="styles/base/template.css" media="screen">
 <link rel="stylesheet" type="text/css" href="styles/cavendish/template.css" title="Cavendish" media="screen">
@@ -16,7 +16,7 @@
 <div id="top">
  <ul class="path">
   <li><a href="http://gump.apache.org/" title="Apache Gump">Apache Gump</a></li>
-  <li class="current"><span>Runs</span></li>
+  <li class="current"><span>$current</span></li>
  </ul>
 </div>
 
@@ -25,7 +25,7 @@
 <div id="header">
  <h1><a href="http://gump.apache.org/" title="Apache Gump" accesskey="1">Apache Gump</a></h1>
  <ul>
-  <li class="current"><span>Runs</span></li>
+  <li class="current"><span>$current</span></li>
  </ul>
  <div class="searchbox">
    <label>Search:</label>
@@ -34,10 +34,11 @@
 </div>
 
 <div id="body">
- <h1>Hosts</h1>
+ <h1>Workspaces</h1>
  <ul>
- #foreach ($host in $hosts)
- 	<li>$host.Address</li>
+ #foreach ($workspace in $workspaces)
+ 	<dt>$workspace.Name [$workspace.Host]</dt>
+ 	<dd>$workspace.Description</dd>
  #end
  </ul>
 </div>