incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r392982 [24/25] - in /incubator/lokahi/lokahi/trunk: ./ conf/ database/ docs/ lib/ src/ src/java/ src/java/lokahi/ src/java/lokahi/core/ src/java/lokahi/core/agent/ src/java/lokahi/core/agent/callable/ src/java/lokahi/core/agent/callable/co...
Date Mon, 10 Apr 2006 16:20:11 GMT
Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,170 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (! $page)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#set ($page = "details.vm")
+#end
+#parse("/layout/header.vm")
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+#set ($methodToCall = "UpdateTomcatPool")
+
+
+<div align="center" class="contentbox">
+<br /><br />
+
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td colspan="2">Infrastructure - <b>Tomcat Pool</b>
+  </td>
+  <td align="right">
+  #parse("/Tomcat/Pool/menu/global.vm")
+  </td>
+</tr>
+</table>
+<br />
+
+
+#if ($id)
+  #set ($tomcatPool = $view.getTomcatPool($id))
+
+<table width="95%" border="0" cellspacing="0" cellpadding="1">
+  <tr height="15" class="info">
+	<td align="left" valign="center" colspan=2 >
+	  Tomcat Pool - <b>$!{tomcatPool.getName()}</b>
+	</b>
+	</td>
+	<td align=right>
+	#set($ent = $tomcatPool)
+#parse("/Tomcat/Pool/menu/indiv.vm")
+  </tr>
+			<tr class="headercolor1">
+			<td>Worker Name</td><td>$!{tomcatPool.getWorkerName()}</td><td> </td></tr>
+			<tr class="headercolor2">
+			<td>Environment</td><td><A href="$appRoot/Core/Environment/details.vm?id=$!{tomcatPool.getEnv().getPk()}">$!{tomcatPool.getEnv().getName()}</a></td><td> </td></tr>
+			<tr class="headercolor1">
+			<td>Tomcat Workers:</td><td></td><td></td></tr>
+        #set ($tomcatWorkers = $tomcatPool.getTomcatWorkers())
+        #set ($c=1)
+        #foreach ($worker in $tomcatWorkers)
+          <tr class="headercolor1">
+			    <td> </td>
+			    <td class="bodycolor1$c"><A href="$appRoot/Tomcat/Worker/details.vm?id=$worker.getPk()">$worker.getName()</a></td>
+			    <td align="right" class="bodycolor1$c">
+			    #set($ent = $worker)
+			    #parse("/Tomcat/Worker/menu/indiv.vm")
+			       </td>
+			    </tr>
+          #if ($c == 1)
+            #set($c=2)
+          #else
+            #set($c=1)
+          #end
+        #end
+</table>
+
+
+#set ($collection = $view.getHostingPools($tomcatPool))
+#if( $collection && ! $collection.isEmpty())
+<br />
+#parse("/Core/Pool/list.vm")
+#end 
+
+
+
+#set ($projectContexts = $view.getTomcatContexts($User, $tomcatPool))
+#if( $projectContexts && ! $projectContexts.isEmpty())
+<br>
+  <TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+  <tr height="15" class="info">
+	<td align="left" valign="center" colspan=4 >
+	  Tomcat applications
+	</b>
+	</td>
+  </tr>
+  <tr class="info">
+  <th width=25%> Context </th>
+  <th width=15%> Environment </th>
+  <th width=30%> Worker </th>
+  <th width=30%>  </th>
+  </tr>
+  #set($c = 1)
+	#foreach ($context in $projectContexts)
+		#set ($count = 1)
+		#set ($tomcatPool = $context.getTomcatPool())
+		#if (!$context.hasTomcatPool())
+			<tr class="headercolor$c">
+			<td><A href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}"> $!{context.getName()} </td>
+    	<td> $!{context.getEnv().getName()} </td>
+			<TD> Not assigned to a Pool</TD><TD> </TD></TR>
+		#else
+    	<tr class="headercolor$c">
+		  <td><A href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}"> $!{context.getName()} </td>
+    	<td> $!{context.getEnv().getName()} </td>
+		#end
+		<td>
+		#foreach ($tomcatWorker in $tomcatPool.getTomcatWorkers())
+		  <A href="$appRoot/Tomcat/Worker/$page?id=$!{tomcatWorker.getPk()}">$!{tomcatWorker.getName()} </a><br>
+		#end
+		</td>
+		<td align="right">
+		<!-- before macro -->
+		<!-- $context -->
+		<!-- start macro -->
+		#contextDropBoxWOproject($User $context)
+		</td>
+ 	  </tr>
+		#set ($count = $math.add($count, 1))
+        #if ($c == 1)
+          #set($c=2)
+        #else
+          #set($c=1)
+        #end
+	#end ##of all servers for this context
+</table>
+#end 	## of all contexts
+
+<br />
+
+
+
+
+#else
+  Tomcat Pool:
+  #set ($aps = $view.getTomcatPools())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($ap in $aps)
+              			      <option value="$appRoot/Tomcat/Pool/details.vm?id=$ap.getPk()">$ap.getName()
+              			      #end
+              			      </select><BR>
+#end
+
+
+<br />
+</div>
+<br />
+</div>
+
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,44 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (!$collection)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#parse("/layout/header.vm")
+#set($plf = "true")
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#set ($individual = $view.getTomcatPool($id))
+#set ($indivPage = "/Tomcat/Pool/confirm.vm")
+#else
+#set ($collection = $view.getTomcatPools())
+#end
+#end
+#set ($entity = "TomcatPool")
+#set ($usesEnv = "true")
+#set ($path = "Tomcat/Pool")
+#if (! $currentPage)
+#set ($currentPage = "$appRoot/Tomcat/Pool/list.vm")
+#end
+
+
+#parse("/layout/list2.vm")
+#if($plf)
+#parse("/layout/footer.vm")
+#end
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,50 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Tomcat/Pool/$page">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Tomcat/Pool/details.vm">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("AddTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/add.vm">&nbsp;Add&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/update.vm">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/delete.vm">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Tomcat/Pool/restarttomcat.vm">&nbsp;Restart&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Tomcat/Pool/stoptomcat.vm">&nbsp;Stop&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Tomcat/Pool/starttomcat.vm">&nbsp;Start&nbsp;</option>
+#end
+#if($User.isAllowed("ViewTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/viewconf.vm">&nbsp;View server.xml&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Tomcat/Pool/deployconf.vm">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,47 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Tomcat/Pool/$page?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Tomcat/Pool/details.vm?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/update.vm?id=$!{ent.getPk()}">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/delete.vm?id=$!{ent.getPk()}">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Tomcat/Pool/restarttomcat.vm?id=$!{ent.getPk()}">&nbsp;Restart&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Tomcat/Pool/stoptomcat.vm?id=$!{ent.getPk()}">&nbsp;Stop&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Tomcat/Pool/starttomcat.vm?id=$!{ent.getPk()}">&nbsp;Start&nbsp;</option>
+#end
+#if($User.isAllowed("ViewTomcatPool"))
+<option value="$appRoot/Tomcat/Pool/viewconf.vm">&nbsp;View server.xml&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Tomcat/Pool/deployconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/restarttomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/restarttomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/restarttomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/restarttomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: restarttomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatPool/SubmitJobAction")
+#set($methodToCall = "RestartTomcat")
+#set($buttonName = "Restart Tomcat")
+#set ($function = "RestartTomcat")
+#set ($currentPage = "$appRoot/Tomcat/Pool/restarttomcat.vm")
+#parse("/Tomcat/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/starttomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/starttomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/starttomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/starttomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: starttomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatPool/SubmitJobAction")
+#set($methodToCall = "StartTomcat")
+#set($buttonName = "Start Tomcat")
+#set ($function = "StartTomcat")
+#set ($currentPage = "$appRoot/Tomcat/Pool/starttomcat.vm")
+#parse("/Tomcat/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/stoptomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/stoptomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/stoptomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/stoptomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: stoptomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatPool/SubmitJobAction")
+#set($methodToCall = "StopTomcat")
+#set($buttonName = "Stop Tomcat")
+#set ($function = "StopTomcat")
+#set ($currentPage = "$appRoot/Tomcat/Pool/stoptomcat.vm")
+#parse("/Tomcat/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,87 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: update.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#parse("/layout/header.vm")
+
+<div class="projectbox">
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+<TR CLASS="info" valign="top">
+	<TD colspan=3>Infrastructure - <b>Tomcat Pool</b>
+  </TD>
+</TR>
+</table>
+<div class="messagebox">
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateTomcatPool")
+#if($id)
+#set ($tomcatPool = $view.getTomcatPool($id))
+
+#if ($User.isAllowed("UpdateTomcatPool") && $methodToCall == "UpdateTomcatPool")
+<form name="Form" method="post" action='$link.setAction("administration/TomcatPoolAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+Name: <input type="text" readonly id="workerName" name="workerName" value="$!{tomcatPool.getWorkerName()}"><BR>
+Pool Name: <input type="text" readonly id="poolName" name="poolName" value="$!{tomcatPool.getName()}"><BR>
+Environment:
+#set ($envs = $view.getEnvironments())
+<select name=envId>
+#if ($tomcatPool.getEnv())
+#if ($envs.remove($tomcatPool.getEnv()))
+
+#end
+#end
+            <option value="$tomcatPool.getEnv().getPk()">$tomcatPool.getEnv().getName()
+			      #foreach ($env in $envs)
+			      <option value="$env.getPk()">$env.getName()
+			      #end
+			      </select><BR>
+Tomcat Workers:
+
+<select name="tomcatIds" size="5" style="width:150px" multiple>
+	#set ($tomcatWorkers = $Users.getTomcatWorkers())
+	#if ($tomcatPool.getTomcats())
+		#foreach ($worker in $tomcatPool.getTomcats())
+			<option value="$worker.getPk()" > $worker.getName()
+		#end
+		#if ($tomcatWorkers.removeAll($tomcatPool.getTomcats()))
+		#end
+	#end
+	#foreach ($worker in $tomcatWorkers)
+		<option value="$worker.getPk()" > $worker.getName()
+	#end
+</select>
+<BR><BR><input type="submit" value="submit">
+#end
+#else
+  Tomcat Pool:
+  #set ($aps = $view.getTomcatPools())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($ap in $aps)
+              			      <option value="$appRoot/Tomcat/Pool/update.vm?id=$ap.getPk()">$ap.getName()
+              			      #end
+              			      </select><BR>
+#end
+</form>
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/view.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/view.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/view.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/view.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,21 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: view.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/ProjectTop.vm")
+#set ($page = "view.vm")
+#parse("/Tomcat/Pool/details.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/viewconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/viewconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/viewconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Pool/viewconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,52 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: viewconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#parse("/layout/header.vm")
+<div class="projectbox">
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+<TR CLASS="info" valign="top">
+	<TD colspan=3>Infrastructure - <b>Tomcat Pool</b>
+  </TD>
+</TR>
+</table>
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+<div class="messagebox">
+#if ($id)
+#set ($tomcatWorker = $view.getTomcatWorker($id))
+<!-- $tomcatWorker -->
+<!-- buildConfForWeb -->
+<TextArea cols="90" READONLY rows="30">$!{tomcatWorker.buildConfForWeb()}</textarea>
+#else
+Tomcat Worker:
+#set ($tws = $view.getTomcatWorkers())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($tw in $tws)
+              			      <option value="$appRoot/Tomcat/Pool/viewconf.vm?id=$tw.getPk()">$tw.getName()
+              			      #end
+              			      </select><BR>
+#end
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,165 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: add.vm,v 1.3 2006/01/25 21:53:45 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Server")
+#parse("/layout/header.vm")
+<div class="projectbox">
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+<TR CLASS="info" valign="top">
+	<TD colspan=3>Infrastructure - <b>Tomcat</b>
+  </TD>
+</TR>
+</table>
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/TomcatAction")'>
+<table>
+<tr>
+<td>
+Name:
+</td>
+<td>
+<input type="text" id="name" name="name" value="$!{name}">
+</td>
+</tr>
+<tr>
+<td>
+Description:
+</td>
+<td>
+<input type="text" id="description" name="description" value="$!{description}">
+</td>
+</tr>
+<tr>
+<td>
+Version:
+</td>
+<td>
+<input type=radio name=tomcatType value="4"> 4.0.4 <input type=radio name=tomcatType value="5"> 5.0.27 <input type=radio name=tomcatType value="6"> 5.5.9
+</td>
+</tr>
+<tr>
+<td>
+Base Location:
+</td>
+<td>
+<input type="text" id="baseLocation" name="baseLocation" value="$!{baseLocation}">
+</td>
+</tr>
+<tr>
+<td>
+Tomcat Home:
+</td>
+<td>
+<input type="text" id="tomcatHome" name="tomcatHome" value="$!{tomcatHome}">
+</td>
+</tr>
+<tr>
+<td>
+HTTP Port:
+</td>
+<td>
+<input type="text" id="httpPort" name="httpPort" value="$!{httpPort}">
+</td>
+</tr>
+<tr>
+<td>
+System User:
+</td>
+<td>
+<input type="text" id="sysUser" name="sysUser" value="$!{sysUser}">
+</td>
+</tr>
+<tr>
+<td>
+System Group:
+</td>
+<td>
+<input type="text" id="sysGroup" name="sysGroup" value="$!{sysGroup}">
+</td>
+</tr>
+<tr>
+<td>
+Java Home:
+</td>
+<td>
+<input type="text" id="javaHome" name="javaHome" value="$!{javaHome}">
+</td>
+</tr>
+<tr>
+<td>
+Standard Out Log:
+</td>
+<td>
+<input type="text" id="stdOutLog" name="stdOutLog" value="$!{stdOutLog}">
+</td>
+</tr>
+<tr>
+<td>
+Start Class:
+</td>
+<td>
+<input type="text" id="startClass" name="startClass" value="$!{startClass}">
+</td>
+</tr>
+<tr>
+<td>
+Environment Varibles:
+</td>
+<td>
+<textarea id="env" cols="70" rows="7" name="env">$!{env}</textarea>
+</td>
+</tr>
+<tr>
+<td>
+Java Options:
+</td>
+<td>
+<textarea id="javaOpts" cols="70" rows="7" name="javaOpts">$!{javaOpts}</textarea>
+</td>
+</tr>
+<!--
+<input type="hidden" id="pidFileLocation" name="pidFileLocation" value="$!{pidFileLocation}">
+</td>
+</tr>
+<tr>
+<td>
+Files:
+</td>
+<td>
+#set ($allFiles = $view.getFiles())
+
+<select name=files multiple>
+			      #foreach ($file in $allFiles)
+			      <option value="$file.getPk()">$file.getName()
+			      #end
+			      </select>
+</td>
+</tr>
+-->
+</table>
+<input type="hidden" name="methodToCall" value="AddTomcat">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/confirm.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/confirm.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/confirm.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/confirm.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,27 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: confirm.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if ($User.isAllowed($function) && $methodToCall && $actionLink)
+<form name="Form" method="post" action='$link.setAction($actionLink)'>
+<input type=hidden name="methodToCall" value="$methodToCall" >
+<input type="submit" value="$buttonName"><BR>
+$methodToCall
+<input type=hidden name=id value="$individual.getPk()" >&nbsp;&nbsp;
+$individual.getName()
+</form>
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,25 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/Tomcat/Delete")
+#set($methodToCall = "DeleteTomcat")
+#set($buttonName = "Delete")
+#set ($function = "DeleteTomcat")
+#set($currentPage = "$appRoot/Tomcat/Server/delete.vm")
+#parse("/Tomcat/Server/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,98 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Server")
+#parse("/layout/header.vm")
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+<div align="center" class="contentbox">
+<br /><br />
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td colspan="2">Infrastructure - <b>Tomcat</b>
+  </td>
+  <td align="right">
+  #parse("/Tomcat/Server/menu/global.vm")
+  </td>
+</tr>
+</table>
+<br>
+
+
+#if ($id)
+  #set ($tomcat = $view.getTomcat($id))
+  #set ($ent = $tomcat)
+
+<table width="95%" border="0" cellspacing="0" cellpadding="1">
+  <tr height="15" class="info">
+	<td align="left" valign="center" colspan="2">
+	  Tomcat - $!{tomcat.getName()}
+	</b>
+	</td>
+	<td align="right">
+	#if($ent)
+	#parse("/Tomcat/Server/menu/indiv.vm")
+	#end
+	</td>
+ </tr>
+<tr class="headercolor1"><td>Name:</td><td>$!{tomcat.getServerName()}</td><td> </td></tr>
+<tr class="headercolor2"><td>Description:</td><td>$!{tomcat.getDescription()}</td><td> </td></tr>
+<tr class="headercolor1"><td>Base Location:</td><td>$!{tomcat.getBaseLocation()}</td><td> </td></tr>
+<tr class="headercolor2"><td>Tomcat Home:</td><td>$!{tomcat.getTomcatHome()}</td><td> </td></tr>
+<tr class="headercolor1"><td>HTTP Port:</td><td>$!{tomcat.getHttpPort()}</td><td> </td></tr>
+<tr class="headercolor2"><td>System User:</td><td>$!{tomcat.getSysUser()}</td><td> </td></tr>
+<tr class="headercolor1"><td>System Group:</td><td>$!{tomcat.getSysGroup()}</td><td> </td></tr>
+<tr class="headercolor2"><td>JVM Options:</td><td colspan="2"><textarea readonly id="entry" name="entry" cols="40" rows="5"> $!{tomcat.getEntry()} </textarea></td></tr>
+</table>
+
+#set ($collection = $view.getTomcatWorkers($tomcat))
+#if( $collection && ! $collection.isEmpty())
+<br />
+#parse("/Tomcat/Worker/list.vm")
+#end 	## of all tomcatworkers
+
+
+
+#else
+  Tomcat:
+  #set ($aps = $view.getTomcats())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($ap in $aps)
+              			      <option value="$appRoot/Tomcat/Server/details.vm?id=$ap.getPk()">$ap.getName()
+              			      #end
+              			      </select><BR>
+#end
+
+
+<br>
+
+
+</div>
+
+#parse("/layout/footer.vm")
+
+
+
+
+
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,44 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (!$collection)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Server")
+#parse("/layout/header.vm")
+#set($plf = "true")
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#set ($individual = $view.getTomcat($id))
+#set ($indivPage = "/Tomcat/Server/confirm.vm")
+#else
+#set ($collection = $view.getTomcats())
+#end
+#end
+#set ($entity = "Tomcat")
+#set ($usesEnv = "false")
+#set ($path = "Tomcat/Server")
+
+#if (! $currentPage)
+#set ($currentPage = "$appRoot/$path/list.vm")
+#end
+
+
+#parse("/layout/list2.vm")
+#if ($plf)
+#parse("/layout/footer.vm")
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,25 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+<option value="$appRoot/Tomcat/Server/details.vm">&nbsp;Details&nbsp;</option>
+<option value="$appRoot/Tomcat/Server/add.vm">&nbsp;Add&nbsp;</option>
+<option value="$appRoot/Tomcat/Server/update.vm">&nbsp;Update&nbsp;</option>
+<option value="$appRoot/Tomcat/Server/delete.vm">&nbsp;Delete&nbsp;</option>
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+<option value="$appRoot/Tomcat/Server/details.vm?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+<option value="$appRoot/Tomcat/Server/update.vm?id=$!{ent.getPk()}">&nbsp;Update&nbsp;</option>
+<option value="$appRoot/Tomcat/Server/delete.vm?id=$!{ent.getPk()}">&nbsp;Delete&nbsp;</option>
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Server/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,79 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: update.vm,v 1.3 2006/01/25 21:53:45 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Server")
+#parse("/layout/header.vm")
+<div align="center" class="contentbox">
+<br /><br />
+<div class="projectbox">
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+<TR CLASS="info" valign="top">
+	<TD colspan=3>Infrastructure - <b>Tomcat</b>
+  </TD>
+</TR>
+</table>
+<div class="messagebox">
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateTomcat")
+
+#if($id)
+#set ($tomcat = $view.getTomcat($id))
+
+#if ($User.isAllowed("UpdateTomcat") && $methodToCall == "UpdateTomcat")
+<form name="Form" method="post" action='$link.setAction("administration/TomcatAction")'>
+<input type="hidden" id="id" name="id" value="$id">
+Name: <input type="text" id="name" name="name" value="$!{tomcat.getServerName()}"><BR>
+Description: <input type="text" id="description" name="description" value="$!{tomcat.getDescription()}"><BR>
+<!-- $tomcat.getType() -->
+#if ($tomcat.getType() == 5)
+Version: <input type=radio name=tomcatType value="4"> 4.0.4 <input type=radio name=tomcatType CHECKED value="5"> 5.0.27 <input type=radio name=tomcatType value="6"> 5.5.9<BR>
+#elseif ($tomcat.getType() == 6)
+Version: <input type=radio name=tomcatType value="4"> 4.0.4 <input type=radio name=tomcatType value="5"> 5.0.27 <input type=radio name=tomcatType CHECKED value="6"> 5.5.9 <BR>
+#else
+Version: <input type=radio name=tomcatType CHECKED value="4"> 4.0.4 <input type=radio name=tomcatType value="5"> 5.0.27 <input type=radio name=tomcatType value="6"> 5.5.9 <BR>
+#end
+Base Location: <input type="text" size="45" id="baseLocation" name="baseLocation" value="$!{tomcat.getBaseLocation()}"><BR>
+Tomcat Home: <input type="text" size="45" id="tomcatHome" name="tomcatHome" value="$!{tomcat.getTomcatHome()}"><BR>
+HTTP Port: <input type="text" id="httpPort" name="httpPort" value="$!{tomcat.getHttpPort()}"><BR>
+System User: <input type="text" id="sysUser" name="sysUser" value="$!{tomcat.getSysUser()}"><BR>
+System Group: <input type="text" id="sysGroup" name="sysGroup" value="$!{tomcat.getSysGroup()}"><BR>
+Start Class: <input type="text" id="startClass" name="startClass" value="$!{tomcat.getStartClass()}"><BR>
+Standard Out Log: <input type="text" id="stdOutLog" name="stdOutLog" value="$!{tomcat.getStdOutLog()}"><BR>
+Java Home: <input type="text" id="javaHome" name="javaHome" value="$!{tomcat.getJavaHome()}"><BR>
+Environment Varibles:  <textarea id="env" name="env" cols="40" rows="5"> $!{tomcat.getEnv()} </textarea><BR>
+Java Options:  <textarea id="javaOpts" name="javaOpts" cols="40" rows="5"> $!{tomcat.getJavaOpts()} </textarea><BR>
+<input type="hidden" name="methodToCall" value="UpdateTomcat">
+<input type="submit" value="Update"><BR>
+</form>
+#end
+#else
+  Tomcat:
+  #set ($aps = $view.getTomcats())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($ap in $aps)
+              			      <option value="$appRoot/Tomcat/Server/update.vm?id=$ap.getPk()">$ap.getName()
+              			      #end
+              			      </select><BR>
+
+#end
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,80 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: add.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#parse("/layout/header.vm")
+<div class="projectbox">
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+<TR CLASS="info" valign="top">
+	<TD colspan=3>Infrastructure - <b>TomcatWorker</b>
+  </TD>
+</TR>
+</table>
+<br>
+<div align="center" class="contentbox">
+<br /><br />
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/TomcatWorkerAction")'>
+<table>
+<tr>
+<td>
+State:
+</td>
+<td>
+Active
+<input type="hidden" id="stateId" name="stateId" value="8">
+</td>
+</tr>
+<tr>
+<td>
+Hardware:
+</td>
+<td>
+<select name=hardwareId>
+			      #foreach ($h in $view.getHardwares())
+			      <option value="$h.getPk()">$h.getName()
+			      #end
+			      </select>
+</td>
+</tr>
+<tr>
+<td>
+Tomcat:
+</td>
+<td>
+<select name=tomcatId>
+			      #foreach ($tomcat in $view.getTomcats())
+			      <option value="$tomcat.getPk()">$tomcat.getName()
+			      #end
+			      </select>
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddTomcatWorker">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+<br />
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/buildconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/buildconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/buildconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/buildconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: buildconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatWorker/SubmitJobAction")
+#set($methodToCall = "BuildConfig")
+#set($buttonName = "Build Config")
+#set ($function = "BuildTomcatConfig")
+#set ($currentPage = "/Tomcat/Worker/buildconf.vm")
+#parse("/Tomcat/Worker/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/confirm.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/confirm.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/confirm.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/confirm.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,27 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: confirm.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if ($User.isAllowed($function) && $methodToCall && $actionLink)
+<form name="Form" method="post" action='$link.setAction($actionLink)'>
+<input type=hidden name="methodToCall" value="$methodToCall" >
+<input type="submit" value="$buttonName"><BR>
+$methodToCall
+<input type=hidden name=id value="$individual.getPk()" >&nbsp;&nbsp;
+$individual.getName()
+</form>
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,25 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/TomcatWorker/Delete")
+#set($methodToCall = "DeleteTomcatWorker")
+#set($buttonName = "Delete")
+#set ($function = "DeleteTomcatWorker")
+#set ($currentPage = "/Tomcat/Worker/delete.vm")
+#parse("/Tomcat/Worker/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/deployconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/deployconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/deployconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/deployconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: deployconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatWorker/SubmitJobAction")
+#set($methodToCall = "DeployTomcatConfig")
+#set($buttonName = "Build, Deploy Config")
+#set ($function = "DeployTomcatConfig")
+#set ($currentPage = "/Tomcat/Worker/deployconf.vm")
+#parse("/Tomcat/Worker/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,156 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (! $page)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#set ($page = "details.vm")
+#end
+#parse("/layout/header.vm")
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+<div align="center" class="contentbox">
+<br /><br />
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td colspan="2">Infrastructure - <b>TomcatWorker</b>
+  </td>
+  <td align="right">
+  #parse("/Tomcat/Worker/menu/global.vm")
+  </td>
+</tr>
+</table>
+<br>
+
+
+#if ($id)
+  #set ($tomcatWorker = $view.getTomcatWorker($id))
+
+<table width="95%" border="0" cellspacing="0" cellpadding="1">
+  <tr height="15" class="info">
+	<td align="left" valign="center" colspan=2 >
+	  Worker - $!{tomcatWorker.getName()}
+	</b>
+	</td>
+	<td align="right">
+	#set($ent = $tomcatWorker)
+	#if($ent)
+	#parse("/Tomcat/Worker/menu/indiv.vm")
+	#end
+	</td>
+  </tr>
+			<tr class="headercolor1">
+			<td>Worker Name</td><td>$!{tomcatWorker.getWorkerName()}</td><td> </td>
+			</tr>
+			<tr class="headercolor2">
+			<td>Tomcat</td>
+			<td><A href="$appRoot/Tomcat/Server/details.vm?id=$!{tomcatWorker.getTomcat().getPk()}">$!{tomcatWorker.getTomcat().getName()}</a></td>
+			<td align="right">
+	    <select name=methodToCall onchange='OnChange(this);'>
+       	      <option value="" selected>Select Action
+     <option value="$appRoot/Tomcat/Server/details.vm?id=$!{tomcatWorker.getApache().getPk()}">&nbsp;Details&nbsp;
+     <option value="$appRoot/Tomcat/Server/update.vm?id=$!{tomcatWorker.getApache().getPk()}">&nbsp;Update&nbsp;
+     <option value="$appRoot/Tomcat/Server/delete.vm?id=$!{tomcatWorker.getApache().getPk()}">&nbsp;Delete&nbsp;
+      </select>
+			</td>
+			</tr>
+			<tr class="headercolor1">
+			<td>Hardware</td>
+			<td><A href="$appRoot/Core/Server/details.vm?id=$!{tomcatWorker.getHardware().getPk()}">$!{tomcatWorker.getHardware().getName()}</a></td>
+			<td align="right">
+	    <select name=methodToCall onchange='OnChange(this);'>
+       	      <option value="" selected>Select Action
+          <option value="$appRoot/Core/Server/details.vm?id=$!{tomcatWorker.getHardware().getPk()}">&nbsp;Details&nbsp;
+          <option value="$appRoot/Core/Server/update.vm?id=$!{tomcatWorker.getHardware().getPk()}">&nbsp;Update&nbsp;
+          <option value="$appRoot/Core/Server/delete.vm?id=$!{tomcatWorker.getHardware().getPk()}">&nbsp;Delete&nbsp;
+          </select>
+			</td>
+			</tr>
+
+</table>
+#set ($collection = $view.getTomcatPools($tomcatWorker))
+#if( $collection && ! $collection.isEmpty())
+<br />
+#parse("/Tomcat/Pool/list.vm")
+#end 	## of all tomcatpools
+
+
+#set ($projectContexts = $view.getTomcatContexts($User, $tomcatWorker))
+#if( $projectContexts && ! $projectContexts.isEmpty())
+<br />
+  <table width="95%" border="0" cellspacing="0" cellpadding="1">
+  <tr height="15" class="info">
+	<td align="left" valign="center" colspan=4 >
+	  Tomcat applications
+	</b>
+	</td>
+  </tr>
+  <tr class="info">
+  <th width=25%> Context </th>
+  <th width=15%> Environment </th>
+  <th width=30%> Pool </th>
+  <th width=30%>  </th>
+  </tr>
+  #set($c = 1)
+	#foreach ($context in $projectContexts)
+		#set ($count = 1)
+    	<tr class="headercolor$c">
+		  <td><A href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}"> $!{context.getName()} </td>
+    	<td align="center"> $!{context.getEnv().getName()} </td>
+		<td align="center">
+		  <A href="$appRoot/Tomcat/Pool/details.vm?id=$!{context.getTomcatPool().getPk()}">$!{context.getTomcatPool().getName()} </a><br>
+		</td>
+		<td align="right">
+		<!-- before macro -->
+		<!-- $context -->
+		<!-- start macro -->
+		#contextDropBoxWOproject($User $context)
+		</td>
+ 	  </tr>
+		#set ($count = $math.add($count, 1))
+        #if ($c == 1)
+          #set($c=2)
+        #else
+          #set($c=1)
+        #end
+	#end ##of all servers for this context
+</table>
+<br />
+#end 	## of all contexts
+#else
+Tomcat Worker:
+#set ($tws = $view.getTomcatWorkers())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($tw in $tws)
+              			      <option value="$appRoot/Tomcat/Worker/$page?id=$tw.getPk()">$tw.getName()
+              			      #end
+              			      </select><BR>
+#end
+
+
+<br>
+
+
+</div>
+
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,42 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (!$collection)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#parse("/layout/header.vm")
+#set ($plf = "true")
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#set ($individual = $view.getTomcatWorker($id))
+#set ($indivPage = "/Tomcat/Worker/confirm.vm")
+#else
+#set ($collection = $view.getTomcatWorkers())
+#end
+#end
+#set ($entity = "TomcatWorker")
+#set ($usesEnv = "true")
+#set ($path = "Tomcat/Worker")
+#if (! $currentPage)
+#set ($currentPage = "/Tomcat/Worker/list.vm")
+#end
+
+#parse("/layout/list2.vm")
+#if($plf)
+#parse("/layout/footer.vm")
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,29 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+<option value="$appRoot/Tomcat/Worker/details.vm">&nbsp;Details&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/update.vm">&nbsp;Update&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/delete.vm">&nbsp;Delete&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/restarttomcat.vm">&nbsp;Restart&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/stoptomcat.vm">&nbsp;Stop&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/starttomcat.vm">&nbsp;Start&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/viewconf.vm">&nbsp;View server.xml&nbsp;</option>
+<option value="$appRoot/Tomcat/Worker/deployconf.vm">&nbsp;Deploy Config File&nbsp;</option>
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,47 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if ($page)
+<option value="$appRoot/Tomcat/Worker/$page?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Tomcat/Worker/details.vm?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateTomcatWorker"))
+<option value="$appRoot/Tomcat/Worker/update.vm?id=$!{ent.getPk()}">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteTomcatWorker"))
+<option value="$appRoot/Tomcat/Worker/delete.vm?id=$!{ent.getPk()}">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Tomcat/Worker/restarttomcat.vm?id=$!{ent.getPk()}">&nbsp;Restart&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Tomcat/Worker/stoptomcat.vm?id=$!{ent.getPk()}">&nbsp;Stop&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Tomcat/Worker/starttomcat.vm?id=$!{ent.getPk()}">&nbsp;Start&nbsp;</option>
+#end
+#if($User.isAllowed("ViewTomcatWorker"))
+<option value="$appRoot/Tomcat/Worker/viewconf.vm?id=$!{ent.getPk()}">&nbsp;View server.xml&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Tomcat/Worker/deployconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Config File&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/restarttomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/restarttomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/restarttomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/restarttomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: restarttomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatWorker/SubmitJobAction")
+#set($methodToCall = "RestartTomcat")
+#set($buttonName = "Restart Tomcat")
+#set ($function = "RestartTomcat")
+#set ($currentPage = "/Tomcat/Worker/restarttomcat.vm")
+#parse("/Tomcat/Worker/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/starttomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/starttomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/starttomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/starttomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: starttomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatWorker/SubmitJobAction")
+#set($methodToCall = "StartTomcat")
+#set($buttonName = "Start Tomcat")
+#set ($function = "StartTomcat")
+#set ($currentPage = "/Tomcat/Worker/starttomcat.vm")
+#parse("/Tomcat/Worker/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/stoptomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/stoptomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/stoptomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/stoptomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: stoptomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "TomcatWorker/SubmitJobAction")
+#set($methodToCall = "StopTomcat")
+#set($buttonName = "Stop Tomcat")
+#set ($function = "StopTomcat")
+#set ($currentPage = "/Tomcat/Worker/stoptomcat.vm")
+#parse("/Tomcat/Worker/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,84 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: update.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#parse("/layout/header.vm")
+
+<div align="center" class="contentbox">
+<br /><br />
+<div id="bigright">
+<div class="messagebox">
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateTomcatWorker")
+
+#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateTomcatWorker")
+#if($id)
+#set ($tw = $view.getTomcatWorker($id))
+<form name="Form" method="post" action='$link.setAction("administration/TomcatWorkerAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+Worker Name: <input type="text" readonly id="name" name="name" value="$!{tw.getWorkerName()}"><BR>
+
+Name: <input type="text" size="45" readonly id="name" name="name" value="$!{tw.getName()}"><BR>
+Tomcat:
+#set($tomcats = $view.getTomcats())
+<select name=tomcatId>
+#foreach ($tomcat in $tomcats)
+#if ($tomcat == $tw.getTomcat())
+<option value="$tomcat.getPk()" selected>$tomcat.getName()
+#else
+<option value="$tomcat.getPk()">$tomcat.getName()
+#end
+#end
+</select>
+<BR>
+State: <input type="text" readonly id="state" name="state" value="Active"><BR>
+<input type="hidden" id="stateId" name="stateId" value="8">
+Hardware: 
+#set($hardware = $view.getHardwares())
+<select name=hardwareId>
+#foreach ($h in $hardware)
+#if ($h == $tw.getHardware())
+<option value="$h.getPk()" selected>$h.getName()
+#else
+<option value="$h.getPk()">$h.getName()
+#end
+#end
+</select>
+<BR>
+<input type="submit" value="update">
+</form>
+#else
+Tomcat Worker:
+#set ($tws = $view.getTomcatWorkers())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($tw in $tws)
+              			      <option value="$appRoot/Tomcat/Worker/update.vm?id=$tw.getPk()">$tw.getName()
+              			      #end
+              			      </select><BR>
+#end
+#end
+</div>
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/view.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/view.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/view.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/view.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,21 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: view.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/ProjectTop.vm")
+#set ($page = "view.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/viewconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/viewconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/viewconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Tomcat/Worker/viewconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,46 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: viewconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#parse("/layout/header.vm")
+
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+<div id="bigright">
+<div class="messagebox">
+#if ($id)
+#set ($tomcatWorker = $view.getTomcatWorker($id))
+
+<TextArea cols="90" READONLY rows="30">$!{tomcatWorker.buildConfForWeb()}</textarea>
+#else
+Tomcat Worker:
+#set ($tws = $view.getTomcatWorkers())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($tw in $tws)
+              			      <option value="$appRoot/Tomcat/Worker/viewconf.vm?id=$tw.getPk()">$tw.getName()
+              			      #end
+              			      </select><br />
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/error/404.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/error/404.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/error/404.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/error/404.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,43 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: 404.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($allowedWithoutLogin = "yes")
+#set ($menu = "/layout/menu/HomeTop.vm")
+#set ($pageSelected = "home")
+<span class="subtitle">404 - Page Not Found</span>
+<p><b>The page / file you're seeking was not found because:</b></p>
+<ol>
+<li>Your bookmark or favorites may be outdated.</li>
+<li>The page may no longer exist.</li>
+<li>The page may have been moved or renamed.</li>
+<li>There may be a typo in the  URL on the referring page.</li>
+<script language="JavaScript">
+<!--
+var from = document.referrer;
+document.write("<br />Referrer:<a href=javascript:window.history.go(-1);> " + from + "</a>");
+// -->
+</script>
+</ol>
+<p><b>Solutions:</b></p>
+<ol>
+<li>Check your spelling --- make sure you've typed the correct URL.</li>
+<li>Try clearing your cache</li>.
+</ol>
+
+
+#parse("/layout/footer.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/home.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/home.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/home.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/home.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,43 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: home.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($allowedWithoutLogin = "yes")
+#set ($menu = "/layout/menu/HomeTop.vm")
+#set ($pageSelected = "home")
+#set ($alerts = $alertSet.getRecentAlerts())
+#if(!$User)
+#set($focus = "LoginForm.userName.focus();")
+#end
+<!-- $User -->
+<!-- $focus -->
+#parse ("/layout/header.vm")
+<div align="center" class="contentbox">
+<br /><br />
+<div id="bigleft" >
+#foreach ($alert in $alerts)
+<div class="alertmessagebox">
+$!{alert.buildHTML()}
+</div>
+#end
+</div>
+<div id="right">
+#parse ("layout/login.vm")
+</div>
+<br />
+<br />
+</div>
+

Added: incubator/lokahi/lokahi/trunk/src/www/images/menu/left.jpg
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/images/menu/left.jpg?rev=392982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lokahi/lokahi/trunk/src/www/images/menu/left.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lokahi/lokahi/trunk/src/www/images/menu/left_on.jpg
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/images/menu/left_on.jpg?rev=392982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lokahi/lokahi/trunk/src/www/images/menu/left_on.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lokahi/lokahi/trunk/src/www/images/menu/right.jpg
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/images/menu/right.jpg?rev=392982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lokahi/lokahi/trunk/src/www/images/menu/right.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lokahi/lokahi/trunk/src/www/images/menu/right_on.jpg
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/images/menu/right_on.jpg?rev=392982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lokahi/lokahi/trunk/src/www/images/menu/right_on.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lokahi/lokahi/trunk/src/www/images/menu/submenu-background.jpg
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/images/menu/submenu-background.jpg?rev=392982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lokahi/lokahi/trunk/src/www/images/menu/submenu-background.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lokahi/lokahi/trunk/src/www/images/menu/tab-background.jpg
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/images/menu/tab-background.jpg?rev=392982&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lokahi/lokahi/trunk/src/www/images/menu/tab-background.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lokahi/lokahi/trunk/src/www/index.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/index.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/index.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/index.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,23 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: index.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if(!($forward) || $forward == "")
+#set($forward = "/home.vm")
+#end
+#parse("$forward")
+#parse ("/layout/footer.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/js/common.js
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/js/common.js?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/js/common.js (added)
+++ incubator/lokahi/lokahi/trunk/src/www/js/common.js Mon Apr 10 09:19:33 2006
@@ -0,0 +1,28 @@
+//
+// Copyright 2006  The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// $Id: common.js,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+//
+function OnChange(dropdown)
+{
+	var myindex  = dropdown.selectedIndex;
+	var SelValue = dropdown.options[myindex].value;
+	var baseURL = SelValue;
+	top.location.href = baseURL;
+
+	return true;
+}
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/js/popup.js
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/js/popup.js?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/js/popup.js (added)
+++ incubator/lokahi/lokahi/trunk/src/www/js/popup.js Mon Apr 10 09:19:33 2006
@@ -0,0 +1,98 @@
+// Copyright © 2000 by Apple Computer, Inc., All Rights Reserved.
+//
+// You may incorporate this Apple sample code into your own code
+// without restriction. This Apple sample code has been provided "AS IS"
+// and the responsibility for its operation is yours. You may redistribute
+// this code, but you are not permitted to redistribute it as
+// "Apple sample code" after having made changes.
+// ********************************
+// application-specific functions *
+// ********************************
+
+// store variables to control where the popup will appear relative to the cursor position
+// positive numbers are below and to the right of the cursor, negative numbers are above and to the left
+var xOffset = 50;
+var yOffset = -20;
+
+function showPopup (targetObjectId, eventObj) {
+    if(eventObj) {
+	// hide any currently-visible popups
+	hideCurrentPopup();
+	// stop event from bubbling up any farther
+	eventObj.cancelBubble = true;
+	// move popup div to current cursor position
+	// (add scrollTop to account for scrolling for IE)
+	var newXCoordinate = (eventObj.pageX)?eventObj.pageX + xOffset:eventObj.x + xOffset + ((document.body.scrollLeft)?document.body.scrollLeft:0);
+	var newYCoordinate = (eventObj.pageY)?eventObj.pageY + yOffset:eventObj.y + yOffset + ((document.body.scrollTop)?document.body.scrollTop:0);
+	moveObject(targetObjectId, newXCoordinate, newYCoordinate);
+	// and make it visible
+	if( changeObjectVisibility(targetObjectId, 'visible') ) {
+	    // if we successfully showed the popup
+	    // store its Id on a globally-accessible object
+	    window.currentlyVisiblePopup = targetObjectId;
+	    return true;
+	} else {
+	    // we couldn't show the popup
+	    return false;
+	}
+    } else {
+	// there was no event object, so we won't be able to position anything, so give up
+	return false;
+    }
+} // showPopup
+
+function hideCurrentPopup() {
+    // note: we've stored the currently-visible popup on the global object window.currentlyVisiblePopup
+    if(window.currentlyVisiblePopup) {
+	changeObjectVisibility(window.currentlyVisiblePopup, 'hidden');
+	window.currentlyVisiblePopup = false;
+    }
+} // hideCurrentPopup
+
+
+
+// ***********************
+// hacks and workarounds *
+// ***********************
+
+// initialize hacks whenever the page loads
+window.onload = initializeHacks;
+
+// setup an event handler to hide popups for generic clicks on the document
+document.onclick = hideCurrentPopup;
+
+function initializeHacks() {
+    // this ugly little hack resizes a blank div to make sure you can click
+    // anywhere in the window for Mac MSIE 5
+    if ((navigator.appVersion.indexOf('MSIE 5') != -1)
+	&& (navigator.platform.indexOf('Mac') != -1)
+	&& getStyleObject('blankDiv')) {
+	window.onresize = explorerMacResizeFix;
+    }
+    resizeBlankDiv();
+    // this next function creates a placeholder object for older browsers
+    createFakeEventObj();
+}
+
+function createFakeEventObj() {
+    // create a fake event object for older browsers to avoid errors in function call
+    // when we need to pass the event object to functions
+    if (!window.event) {
+	window.event = false;
+    }
+} // createFakeEventObj
+
+function resizeBlankDiv() {
+    // resize blank placeholder div so IE 5 on mac will get all clicks in window
+    if ((navigator.appVersion.indexOf('MSIE 5') != -1)
+	&& (navigator.platform.indexOf('Mac') != -1)
+	&& getStyleObject('blankDiv')) {
+	getStyleObject('blankDiv').width = document.body.clientWidth - 20;
+	getStyleObject('blankDiv').height = document.body.clientHeight - 20;
+    }
+}
+
+function explorerMacResizeFix () {
+    location.reload(false);
+}
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/checksession.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/checksession.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/checksession.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/checksession.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,25 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: checksession.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (!$User && !$allowedWithoutLogin && !$User.isActive())
+#if($request.getQueryString())
+	$response.sendRedirect("$appRoot/index.vm?url='$request.getRequestURI()?$request.getQueryString()'")
+#else
+	$response.sendRedirect("$appRoot/index.vm?url='$request.getRequestURI()'")
+#end
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/footer.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/footer.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/footer.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/footer.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,23 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: footer.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+
+<br /><br />
+</body>
+</html>
+
+



Mime
View raw message