You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by pr...@apache.org on 2007/09/28 23:14:26 UTC

svn commit: r580489 - in /geronimo/samples/trunk/samples/timereport: ./ timereport-ear/ timereport-ear/src/ timereport-ear/src/main/ timereport-ear/src/main/resources/ timereport-ear/src/main/resources/META-INF/ timereport-war/ timereport-war/src/ time...

Author: prasad
Date: Fri Sep 28 14:14:24 2007
New Revision: 580489

URL: http://svn.apache.org/viewvc?rev=580489&view=rev
Log:
* timereport sample to demonstrate security configurations

Added:
    geronimo/samples/trunk/samples/timereport/
    geronimo/samples/trunk/samples/timereport/pom.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-ear/
    geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/
    geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp   (with props)
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/
    geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp   (with props)

Added: geronimo/samples/trunk/samples/timereport/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/pom.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/pom.xml (added)
+++ geronimo/samples/trunk/samples/timereport/pom.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+    
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>samples</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <artifactId>timereport</artifactId>
+    <name>Geronimo Samples :: timereport</name>
+    <packaging>pom</packaging>
+    
+    <description>
+        Geronimo timereport sample created from an archetype.
+    </description>
+    
+   <modules>
+        <module>timereport-war</module>
+        <module>timereport-ear</module>
+    </modules>
+
+   <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-site-plugin</artifactId>
+                <inherited>false</inherited>
+                <configuration>
+                  <outputDirectory>${project.basedir}/docs</outputDirectory>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <repositories>
+        <repository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshots Repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </repository>
+    </repositories> 
+
+</project>

Propchange: geronimo/samples/trunk/samples/timereport/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>timereport</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>timereport-ear</artifactId>
+    <name>Geronimo Samples :: timereport :: EAR</name>
+    <packaging>ear</packaging>
+
+    <description>Geronimo Samples. EAR Module</description>
+
+    <dependencies>
+		<dependency>
+			<groupId>org.tranql</groupId>
+			<artifactId>tranql-connector-ra</artifactId>
+			<version>1.3</version>
+			<type>rar</type>
+		</dependency>
+		<dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>timereport-war</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>war</type>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <displayName>Geronimo Sample EAR for timereport</displayName>
+                    <description>Geronimo Sample EAR for timereport</description>
+                    <version>5</version>
+                    <modules>
+                        <webModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>timereport-war</artifactId>
+                            <contextRoot>/timereport</contextRoot>
+                            <bundleFileName>timereport-war-2.0-SNAPSHOT.war</bundleFileName>
+                        </webModule>
+                    </modules>
+                </configuration>
+            </plugin>
+
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>install</phase>
+                        <id>copy-parent-target</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <echo>Copying ${pom.build.finalName}.ear file to parent</echo>
+                                <copy file ="${project.build.directory}/${pom.artifactId}-${pom.version}.ear" todir="${pom.basedir}/.." failonerror="false" overwrite="true" />
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.2">
+
+    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>ear</type>
+        </moduleId>
+    </environment>
+	
+	<module>
+		<connector>tranql-connector-ra-1.3.rar</connector>
+		<alt-dd>TimeReportPool.xml</alt-dd>
+	</module>
+</application>

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql Fri Sep 28 14:14:24 2007
@@ -0,0 +1,24 @@
+CREATE TABLE users(
+	userid VARCHAR(15) PRIMARY KEY,
+	password VARCHAR(15),
+	name VARCHAR(40)
+);
+
+CREATE TABLE usergroups(
+	userid VARCHAR(15),
+	groupname VARCHAR(20),
+	PRIMARY KEY (userid, groupname)
+);
+
+INSERT INTO users VALUES('emp1', 'pass1', 'Employee 1');
+INSERT INTO users VALUES('emp2', 'pass2', 'Employee 2');
+INSERT INTO users VALUES('mgm1', 'pass3', 'Manager 1');
+INSERT INTO users VALUES('mgm2', 'pass4', 'Manager 2');
+
+INSERT INTO usergroups VALUES('emp1', 'EmployeeGroup');
+INSERT INTO usergroups VALUES('emp2', 'EmployeeGroup');
+INSERT INTO usergroups VALUES('mgm1', 'ManagerGroup');
+INSERT INTO usergroups VALUES('mgm2', 'ManagerGroup');
+
+
+

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportDB.sql
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
+    <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <dep:moduleId>
+            <dep:groupId>console.dbpool</dep:groupId>
+            <dep:artifactId>TimeReportPool</dep:artifactId>
+            <dep:version>1.0</dep:version>
+            <dep:type>rar</dep:type>
+        </dep:moduleId>
+        <dep:dependencies>
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+                <dep:artifactId>j2ee-security</dep:artifactId>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+			
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+                <dep:artifactId>system-database</dep:artifactId>
+                <dep:version>2.0-SNAPSHOT</dep:version>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+        </dep:dependencies>
+    </dep:environment>
+	<!--db pool fragment-->
+    <resourceadapter>
+        <outbound-resourceadapter>
+            <connection-definition>
+                <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
+                <connectiondefinition-instance>
+                    <name>TimeReportPool</name>
+                    <config-property-setting name="Driver">org.apache.derby.jdbc.EmbeddedDriver</config-property-setting>
+                    <config-property-setting name="UserName">app</config-property-setting>
+                    <config-property-setting name="ConnectionURL">jdbc:derby:TimeReportDB</config-property-setting>
+                    <connectionmanager>
+                        <local-transaction/>
+                        <single-pool>
+                            <max-size>10</max-size>
+                            <min-size>0</min-size>
+                            <match-one/>
+                        </single-pool>
+                    </connectionmanager>
+                </connectiondefinition-instance>
+            </connection-definition>
+        </outbound-resourceadapter>
+    </resourceadapter>
+	<!--security realm fragment-->
+	<gbean name="TimeReportRealm" class="org.apache.geronimo.security.realm.GenericSecurityRealm">
+		<attribute name="realmName">TimeReportRealm</attribute>
+		<reference name="ServerInfo">
+			<name>ServerInfo</name>
+		</reference>
+		<reference name="LoginService">
+			<name>JaasLoginService</name>
+		</reference>
+		<xml-reference name="LoginModuleConfiguration">
+			<log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.1">
+				<log:login-module control-flag="REQUIRED" server-side="true" wrap-principals="false">
+					<log:login-domain-name>TimeReportRealm</log:login-domain-name>
+					<log:login-module-class>org.apache.geronimo.security.realm.providers.SQLLoginModule</log:login-module-class>
+					<log:option name="jdbcDriver">org.apache.derby.jdbc.EmbeddedDriver</log:option>
+					<log:option name="jdbcUser">app</log:option>
+					<log:option name="userSelect">select userid, password from users where userid=?</log:option>
+					<log:option name="groupSelect">select userid, groupname from usergroups where userid=?</log:option>
+					<log:option name="jdbcURL">jdbc:derby:TimeReportDB</log:option>
+				</log:login-module>
+			</log:login-config>
+		</xml-reference>
+	</gbean>
+</connector>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportPool.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you 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.
+-->
+<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
+    <environment>
+        <moduleId>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>TimeReportRealm</artifactId>
+            <version>1.2</version>
+            <type>car</type>
+        </moduleId>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.geronimo.configs</groupId>
+                <artifactId>j2ee-security</artifactId>
+                <type>car</type>
+            </dependency>
+            <dependency>
+               <groupId>org.apache.geronimo.configs</groupId>
+		       <artifactId>system-database</artifactId>
+			   <type>car</type>
+            </dependency>
+        </dependencies>
+    </environment>
+    <gbean name="TimeReportRealm" class="org.apache.geronimo.security.realm.GenericSecurityRealm">
+        <attribute name="realmName">TimeReportRealm</attribute>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="LoginService">
+            <name>JaasLoginService</name>
+        </reference>
+        <xml-reference name="LoginModuleConfiguration">
+            <log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.1">
+                <log:login-module control-flag="REQUIRED" server-side="true" wrap-principals="false">
+                    <log:login-domain-name>TimeReportRealm</log:login-domain-name>
+                    <log:login-module-class>org.apache.geronimo.security.realm.providers.SQLLoginModule</log:login-module-class>
+                    <log:option name="jdbcDriver">org.apache.derby.jdbc.EmbeddedDriver</log:option>
+                    <log:option name="jdbcUser">app</log:option>
+                    <log:option name="userSelect">select userid, password from users where userid=?</log:option>
+                    <log:option name="groupSelect">select userid, groupname from usergroups where userid=?</log:option>
+                    <log:option name="jdbcURL">jdbc:derby:TimeReportDB</log:option>
+                </log:login-module>
+            </log:login-config>
+        </xml-reference>
+    </gbean>
+</module>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-ear/src/main/resources/TimeReportRealm.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>timereport</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>timereport-war</artifactId>
+    <name>Geronimo Samples :: timereport :: WAR</name>
+    <packaging>war</packaging>
+
+    <description>Geronimo Samples. WEB Module</description>
+
+    <dependencies>
+    </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>process-resources</phase>
+                        <id>copy-parent-site</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                              <echo>Copying site directory from parent</echo>
+                                <copy todir="${project.build.directory}/${pom.artifactId}-2.0-SNAPSHOT" failonerror="false" overwrite="true">
+                                    <fileset dir="${pom.basedir}/../docs"/>
+                                </copy>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java Fri Sep 28 14:14:24 2007
@@ -0,0 +1,53 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.
+ */
+package org.apache.geronimo.samples.timereport.web;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+public class AddEmployeeServlet extends HttpServlet {
+
+	
+	protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+		handleRequest(req,res);
+	}
+
+	protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+		doGet(req,res);
+	}
+	
+	private void handleRequest(HttpServletRequest req, HttpServletResponse res) throws IOException{
+		String name = req.getParameter("name");
+		String username = req.getParameter("username");
+		String password = req.getParameter("password");
+		
+		//TODO: Save employee information to a Database
+		
+		System.out.println("Name = "+name);
+		System.out.println("Username = "+username);
+		System.out.println("Password = "+password);
+		
+		
+		res.sendRedirect("../manager/index.jsp");		
+		
+	}
+
+}

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddEmployeeServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java Fri Sep 28 14:14:24 2007
@@ -0,0 +1,57 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.
+ */
+package org.apache.geronimo.samples.timereport.web;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+
+public class AddTimeRecordServlet extends HttpServlet {
+
+	
+	protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+		handleRequest(req,res);
+	}
+
+	protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+		doGet(req,res);
+	}
+	
+	private void handleRequest(HttpServletRequest req, HttpServletResponse res) throws IOException{
+		String date = req.getParameter("date");
+		String project = req.getParameter("project");
+		String hours = req.getParameter("hours");
+		
+		System.out.println("Date = "+date);
+		System.out.println("Project = "+project);
+		System.out.println("Hours = "+hours);
+		
+		//TODO: Save time record information to a Database
+		
+		
+		res.sendRedirect("../employee/index.jsp");		
+		
+	}
+	
+	
+	
+
+}

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/java/org/apache/geronimo/samples/timereport/web/AddTimeRecordServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you 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.
+-->
+<web-app
+	xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
+	
+	<environment>
+		<moduleId>
+			<groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>TimeReportApp</artifactId>
+            <version>1.2</version>
+		</moduleId>		
+	</environment>
+		
+	<context-root>/timereport</context-root>
+	
+	<security-realm-name>TimeReportRealm</security-realm-name>
+	
+	<security>
+		<default-principal realm-name="TimeReportRealm">
+			<principal name="anonymous"
+				   class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
+				   />
+		</default-principal>
+		<role-mappings>			
+			<role role-name="employee">
+				<realm realm-name="TimeReportRealm">
+					<principal name="EmployeeGroup"
+					   class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"
+				   	/>
+				</realm>
+				<realm realm-name="TimeReportRealm">
+					<principal name="ManagerGroup"
+					   class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"
+					/>					
+				</realm>
+			</role>
+			<role role-name="manager">
+				<realm realm-name="TimeReportRealm">
+					<principal name="ManagerGroup"
+					   class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"
+					/>					
+				</realm>								
+			</role>
+		</role-mappings>
+    </security>
+    
+</web-app>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml Fri Sep 28 14:14:24 2007
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you 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.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+	 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+	 version="2.4">	
+	 
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+  	</welcome-file-list>
+  	
+	<security-constraint>
+		<web-resource-collection>
+			<web-resource-name>employee</web-resource-name>
+			<url-pattern>/employee/*</url-pattern>			
+		</web-resource-collection>
+		<auth-constraint>
+			<role-name>employee</role-name>			 
+		</auth-constraint>
+	</security-constraint>
+	
+	<security-constraint>
+		<web-resource-collection>
+			<web-resource-name>manager</web-resource-name>
+			<url-pattern>/manager/*</url-pattern>			
+		</web-resource-collection>
+		<auth-constraint>
+			<role-name>manager</role-name>
+		</auth-constraint>
+	</security-constraint>
+	
+	<login-config>
+		<auth-method>FORM</auth-method>
+		<realm-name>TimeReportRealm</realm-name>
+		<form-login-config>
+			<form-login-page>/login/login.jsp</form-login-page>
+			<form-error-page>/login/login_error.jsp</form-error-page>
+		</form-login-config>
+	</login-config>
+	
+	<security-role>
+		<role-name>employee</role-name>		
+    	</security-role>
+	<security-role>
+		<role-name>manager</role-name>		
+    </security-role>
+    	
+    <servlet>
+	    <display-name>AddTimeRecordServlet</display-name>
+	    <servlet-name>AddTimeRecordServlet</servlet-name>
+	    <servlet-class>org.apache.geronimo.samples.timereport.web.AddTimeRecordServlet</servlet-class>
+  	</servlet>
+  	<servlet>
+	    <display-name>AddEmployeeServlet</display-name>
+	    <servlet-name>AddEmployeeServlet</servlet-name>
+	    <servlet-class>org.apache.geronimo.samples.timereport.web.AddEmployeeServlet</servlet-class>
+  	</servlet>
+  	
+  	<servlet-mapping>
+	    <servlet-name>AddTimeRecordServlet</servlet-name>
+	    <url-pattern>/employee/add_timerecord</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+	    <servlet-name>AddEmployeeServlet</servlet-name>
+	    <url-pattern>/manager/add_employee</url-pattern>
+    </servlet-mapping>
+        
+</web-app>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp Fri Sep 28 14:14:24 2007
@@ -0,0 +1,48 @@
+<HTML>
+<HEAD>
+<TITLE>Time Report</TITLE>
+</HEAD>
+<BODY>
+<FORM action="add_timerecord" method="POST">
+<CENTER>
+<H1>Report Time to the System</H1>
+<TABLE bgcolor="cyan" align="center">
+	<TR>
+		<TD>Date</TD>
+		<TD><INPUT type="text" name="date" maxlength="10"></TD>
+	</TR>
+	<TR>
+		<TD>Project Name</TD>
+		<TD>
+		<SELECT name="project">
+		<OPTION value="1">Project 1</OPTION>
+		<OPTION value="2">Project 2</OPTION>					
+		<OPTION value="3">Project 3</OPTION>					
+		<OPTION value="4">Project 4</OPTION>					
+		</SELECT>
+		</TD>
+	</TR>
+	<TR>
+		<TD>Number of Hours</TD>
+		<TD><INPUT type="text" name="hours" maxlength="2"></TD>
+	</TR>
+	<TR>
+		<TD>Description</TD>
+		<TD><textarea name="description" rows="5"></textarea></TD>
+	</TR>
+</TABLE>
+<BR>
+	<INPUT type="submit" value="Save">
+	<INPUT type="reset" value="Reset">
+<BR>
+<BR>
+<%if(request.isUserInRole("manager")){%>
+<A href="../manager/index.jsp">Add Employees</A>
+<BR>
+
+<%}%>
+<A href="../login/logout.jsp">Logout</A>
+</CENTER>
+</FORM>
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/employee/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html Fri Sep 28 14:14:24 2007
@@ -0,0 +1,55 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+
+<html>
+    <head>
+        <link type="text/css" rel="stylesheet" href="http://geronimo.apache.org/style/default.css">
+        <link rel="SHORTCUT ICON" href="http://geronimo.apache.org/images/favicon.ico">   
+        <script src="http://geronimo.apache.org/functions.js" type="text/javascript"></script><title>Apache Geronimo Sample Applications</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    </head>
+    
+    <body onload="init()">
+        
+        <table valign="top" background="http://geronimo.apache.org/images/header_bg_1x86.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
+            <tbody>
+                <tr>
+                    <td valing="top" align="left">
+                        <a href="http://geronimo.apache.org/"><img src="http://geronimo.apache.org/images/topleft_logo_437x64.gif" border="0"></a>
+                    </td>
+                    <td width="100%">
+                        &nbsp;
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        
+        <table border="0" cellpadding="2" cellspacing="0" width="100%">
+            <tbody>
+                <tr class="topBar">
+                    <td class="topBarDiv" align="left" nowrap="true" valign="middle" width="100%">
+                        &nbsp;<a href="http://geronimo.apache.org/" title="Apache Geronimo Home" target="_blank">Apache Geronimo Home</a> | <a href="http://cwiki.apache.org/geronimo/" title="Geronimo Documentation"target="_blank">Documentation</a> | <a href="http://cwiki.apache.org/GMOxSAMPLES/" title="Sample Applications"target="_blank">Sample Applications</a>
+                    </td>
+                    <td class="topBarDiv" align="left" nowrap="true" valign="middle">
+                        <a href="xref/index.html" target="source_window">Source Code</a> | <a href="apidocs/index.html" target="source_window">Java Docs</a>&nbsp;&nbsp;
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+
+    </body>
+</html>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html Fri Sep 28 14:14:24 2007
@@ -0,0 +1,29 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd class="cell"">
+<html>
+<head>
+  <title>Apache Geronimo Sample Application</title>
+  <meta content="text/html; CHARSET=iso-8859-1" http-equiv="Content-Type">
+</head>
+
+<FRAMESET rows="86px,*" frameborder="0">
+    <FRAME src="./header.html" name="headerFrame" title="Header" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+    <FRAME src="./index.jsp" name="sampleDocumentFrame" title="Sample Document Description" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+</FRAMESET>
+  
+</html>

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp Fri Sep 28 14:14:24 2007
@@ -0,0 +1,31 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<html>
+<head>
+<title>Time Reporting System</title>
+</head>
+<body>
+<center>
+<h1>Welcome to the Time Reporting System</h1>
+<br>
+<br>
+<a href="employee/index.jsp">Time Report</a><br>
+</center>
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp Fri Sep 28 14:14:24 2007
@@ -0,0 +1,56 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<HTML>
+<HEAD>
+<TITLE>Login</TITLE>
+</HEAD>
+
+<BODY>
+<CENTER>
+   <H1>Please login ...</H1>
+
+   <FORM method="post" action="j_security_check">
+   <TABLE bgcolor="cyan">
+      <TR>
+      <TD align="left">
+      Username:
+      </TD>
+
+      <TD align="left">
+      <INPUT type="text" name="j_username" size="15" maxlength="15">
+      </TD>
+      </TR>
+
+      <TR>
+      <TD align="left">
+      Password:
+      </TD>
+
+      <TD align="left">
+      <INPUT type="password" name="j_password" size="15" maxlength="15">
+      </TD>
+      </TR>
+   </TABLE>
+   <BR>
+   <INPUT type="submit" value="Login">
+   <INPUT type="reset" value="Reset"> 
+   </FORM>
+</CENTER>
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp Fri Sep 28 14:14:24 2007
@@ -0,0 +1,31 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<HTML>
+<HEAD>
+   <TITLE>Login Error</TITLE>
+</HEAD>
+
+<BODY bgcolor="white">
+<CENTER>
+   <H1>Invalid user name or password</H1>
+   <BR>	
+   <A href="/timereport/index.jsp">Home</A> 
+</CENTER>
+</BODY>
+</HTML>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/login_error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp Fri Sep 28 14:14:24 2007
@@ -0,0 +1,34 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<HTML>
+   <HEAD>
+   <TITLE>Logout</TITLE>
+   </HEAD>
+   <BODY>
+   
+   <% session.invalidate(); %>
+
+   <CENTER>
+   <H1>Good Bye</H1>
+   <H2>You have now logged out.</H2>
+
+   <A href="/timereport/index.jsp">Return to Main Page</A>
+   <CENTER>
+   </BODY>
+</HTML>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/login/logout.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp?rev=580489&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp (added)
+++ geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp Fri Sep 28 14:14:24 2007
@@ -0,0 +1,54 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<HTML>
+<HEAD>
+<TITLE>Add Employees</TITLE>
+</HEAD>
+<BODY>
+<FORM action="add_employee">
+<CENTER>
+<H1>Add Employees</H1>
+<BR>
+<TABLE bgcolor="cyan">
+  <TR>
+   <TD>Name</TD>
+   <TD><INPUT type="text" name="name"></TD>
+  </TR>
+  <TR>
+   <TD>Username</TD>	
+   <TD><INPUT type="text" name="username"></TD>
+  </TR>
+   <TR>
+   <TD>Password</TD>	
+   <TD><INPUT type="password" name="password"></TD>
+  </TR>  
+</TABLE>
+<BR>
+<INPUT type="submit" value="Add">
+<INPUT type="reset" value="Reset">
+<BR>
+<BR>
+<A href="../employee/index.jsp">Time Report</A>
+<BR>
+<A href="../login/logout.jsp">Logout</A>
+<BR>
+</CENTER>
+</FORM>
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/timereport/timereport-war/src/main/webapp/manager/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain