You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by km...@apache.org on 2009/02/13 09:38:26 UTC

svn commit: r744030 - in /openejb/trunk/openejb3/examples/webapps: ./ struts/ struts/src/ struts/src/main/ struts/src/main/java/ struts/src/main/java/org/ struts/src/main/java/org/superbiz/ struts/src/main/java/org/superbiz/struts/ struts/src/main/reso...

Author: kmalhi
Date: Fri Feb 13 08:38:24 2009
New Revision: 744030

URL: http://svn.apache.org/viewvc?rev=744030&view=rev
Log:
Added examples which shows usage of struts2, maven, sitemesh, hsqldb/mysql,openejb,tomcat

Added:
    openejb/trunk/openejb3/examples/webapps/struts/
    openejb/trunk/openejb3/examples/webapps/struts/README.txt
    openejb/trunk/openejb3/examples/webapps/struts/pom.xml
    openejb/trunk/openejb3/examples/webapps/struts/src/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUser.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUserForm.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUser.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUserForm.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/ListAllUsers.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/User.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserService.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserServiceImpl.java
    openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/META-INF/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/META-INF/persistence.xml
    openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/struts.xml
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/decorators.xml
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/web.xml
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addUserForm.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addedUser.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/decorators/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/decorators/layout.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUser.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUsers.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/findUserForm.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/index.jsp
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/prelude.jspf
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/style/
    openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/style/layout.css
Modified:
    openejb/trunk/openejb3/examples/webapps/pom.xml

Modified: openejb/trunk/openejb3/examples/webapps/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/pom.xml?rev=744030&r1=744029&r2=744030&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/pom.xml (original)
+++ openejb/trunk/openejb3/examples/webapps/pom.xml Fri Feb 13 08:38:24 2009
@@ -15,11 +15,7 @@
     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">
+--><!-- $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">
   <parent>
     <artifactId>openejb</artifactId>
     <groupId>org.apache.openejb</groupId>
@@ -31,6 +27,6 @@
   <name>OpenEJB :: Web Examples </name>
   <modules>
     <module>ejb-examples</module>
+    <module>struts</module>
   </modules>
-</project>
-
+</project>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/README.txt
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/README.txt?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/README.txt (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/README.txt Fri Feb 13 08:38:24 2009
@@ -0,0 +1,25 @@
+A simple web-app showing how to use maven, struts2, site-mesh, mysql/hsqldb,openejb with tomcat
+This application allows you to insert, find and findAll users. It uses one @Entity named User
+and uses a @Local @Stateless session bean to insert, find and find all User's.
+
+To run this example, perform the following steps:-
+1. Install latest Tomcat
+2. Deploy OpenEJB WAR in tomcat
+3. Open <<tomcat-install>>/conf/tomcat-users.xml and add the following user
+   <user username="admin" password="" roles="manager"/>
+4. Run the following command while in the struts directory
+   mvn clean install war:exploded tomcat:deploy
+5. The above will deploy this web application to tomcat.
+6. To test the application, open a web browser and navigate to 
+   http://localhost:8080/struts
+7. Use the links on the homepage to add, find and list users
+
+By default this example uses hsqldb database whose data should be stored under
+ <<tomcat-install>>/data
+
+If you want to use mysql, then open persistence.xml (its under src/main/resources/META-INF) and
+comment out the <persistence-unit> section for hsqldb and uncomment the one for mysql. Read the 
+comments in persistence.xml for further instructions 
+
+Once you make the change, you would need to redeploy the application. Run the following command
+  mvn clean install war:exploded tomcat:redeploy
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/pom.xml?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/pom.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/pom.xml Fri Feb 13 08:38:24 2009
@@ -0,0 +1,98 @@
+<?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.
+	-->
+<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>
+	<groupId>org.superbiz.struts</groupId>
+	<artifactId>struts</artifactId>
+	<packaging>war</packaging>
+	<version>1.0-SNAPSHOT</version>
+	<name>OpenEJB :: Web Examples :: Struts</name>
+	<url>http://openejb.apache.org</url>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.5</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-servlet_2.5_spec</artifactId>
+			<version>1.2</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-jsp_2.1_spec</artifactId>
+			<version>1.0.1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.openejb</groupId>
+			<artifactId>javaee-api</artifactId>
+			<version>5.0-1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.struts</groupId>
+			<artifactId>struts2-core</artifactId>
+			<version>2.1.6</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.struts</groupId>
+			<artifactId>struts2-sitemesh-plugin</artifactId>
+			<version>2.1.6</version>
+		</dependency>
+		<dependency>
+			<groupId>mysql</groupId>
+			<artifactId>mysql-connector-java</artifactId>
+			<version>5.1.6</version>
+		</dependency>
+		<dependency>
+			<groupId>jstl</groupId>
+			<artifactId>jstl</artifactId>
+			<version>1.1.2</version>
+		</dependency>
+		<dependency>
+			<groupId>taglibs</groupId>
+			<artifactId>standard</artifactId>
+			<version>1.1.2</version>
+		</dependency>
+	</dependencies>
+	<build>
+		<finalName>struts</finalName>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.5</source>
+					<target>1.5</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>tomcat-maven-plugin</artifactId>
+				<version>1.0-beta-1</version>
+				<configuration>
+					<url>http://localhost:8080/manager/html</url>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUser.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUser.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUser.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUser.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,83 @@
+/*
+
+    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.superbiz.struts;
+
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+
+public class AddUser {
+
+	private int id;
+	private String firstName;
+	private String lastName;
+	private String errorMessage;
+
+	
+	public String getFirstName() {
+		return firstName;
+	}
+
+	public void setFirstName(String firstName) {
+		this.firstName = firstName;
+	}
+
+	public String getLastName() {
+		return lastName;
+	}
+
+	public void setLastName(String lastName) {
+		this.lastName = lastName;
+	}
+
+	public String getErrorMessage() {
+		return errorMessage;
+	}
+
+	public void setErrorMessage(String errorMessage) {
+		this.errorMessage = errorMessage;
+	}
+
+	public int getId() {
+		return id;
+	}
+
+	public void setId(int id) {
+		this.id = id;
+	}
+
+	public String execute() {
+
+		try {
+			UserService service = null;
+			Properties props = new Properties();
+			props.put(Context.INITIAL_CONTEXT_FACTORY,
+					"org.apache.openejb.client.LocalInitialContextFactory");
+			Context ctx = new InitialContext(props);
+			service = (UserService) ctx.lookup("UserServiceImplLocal");
+			service.add(new User(id,firstName,lastName));
+		} catch (Exception e) {
+			this.errorMessage = e.getMessage();
+			return "failure";
+		}
+
+		return "success";
+	}
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUserForm.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUserForm.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUserForm.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/AddUserForm.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,25 @@
+/*
+
+    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.superbiz.struts;
+
+import com.opensymphony.xwork2.ActionSupport;
+
+
+public class AddUserForm extends ActionSupport {
+	
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUser.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUser.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUser.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUser.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,72 @@
+/*
+
+ 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.superbiz.struts;
+
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+public class FindUser {
+
+	private int id;
+	private String errorMessage;
+	private User user;
+
+	public User getUser() {
+		return user;
+	}
+
+	public void setUser(User user) {
+		this.user = user;
+	}
+
+	public String getErrorMessage() {
+		return errorMessage;
+	}
+
+	public void setErrorMessage(String errorMessage) {
+		this.errorMessage = errorMessage;
+	}
+
+	public int getId() {
+		return id;
+	}
+
+	public void setId(int id) {
+		this.id = id;
+	}
+
+	public String execute() {
+
+		try {
+			UserService service = null;
+			Properties props = new Properties();
+			props.put(Context.INITIAL_CONTEXT_FACTORY,
+					"org.apache.openejb.client.LocalInitialContextFactory");
+			Context ctx = new InitialContext(props);
+			service = (UserService) ctx.lookup("UserServiceImplLocal");
+			this.user = service.find(id);
+		} catch (Exception e) {
+			this.errorMessage = e.getMessage();
+			return "failure";
+		}
+
+		return "success";
+	}
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUserForm.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUserForm.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUserForm.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/FindUserForm.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,25 @@
+/*
+
+    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.superbiz.struts;
+
+import com.opensymphony.xwork2.ActionSupport;
+
+
+public class FindUserForm extends ActionSupport {
+	
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/ListAllUsers.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/ListAllUsers.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/ListAllUsers.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/ListAllUsers.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,73 @@
+/*
+
+ 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.superbiz.struts;
+
+import java.util.List;
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+public class ListAllUsers {
+
+	private int id;
+	private String errorMessage;
+	private List<User> users;
+
+	public List<User> getUsers() {
+		return users;
+	}
+
+	public void setUsers(List<User> users) {
+		this.users = users;
+	}
+
+	public String getErrorMessage() {
+		return errorMessage;
+	}
+
+	public void setErrorMessage(String errorMessage) {
+		this.errorMessage = errorMessage;
+	}
+
+	public int getId() {
+		return id;
+	}
+
+	public void setId(int id) {
+		this.id = id;
+	}
+
+	public String execute() {
+
+		try {
+			UserService service = null;
+			Properties props = new Properties();
+			props.put(Context.INITIAL_CONTEXT_FACTORY,
+					"org.apache.openejb.client.LocalInitialContextFactory");
+			Context ctx = new InitialContext(props);
+			service = (UserService) ctx.lookup("UserServiceImplLocal");
+			this.users = service.findAll();
+		} catch (Exception e) {
+			this.errorMessage = e.getMessage();
+			return "failure";
+		}
+
+		return "success";
+	}
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/User.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/User.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/User.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/User.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,59 @@
+/*
+
+    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.superbiz.struts;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+@Entity
+@Table(name="USER")
+public class User implements Serializable {
+	private long id;
+	private String firstName;
+	private String lastName;
+	public User(long id, String firstName, String lastName) {
+		super();
+		this.id = id;
+		this.firstName = firstName;
+		this.lastName = lastName;
+	}
+	public User() {
+	}
+	@Id
+	public long getId() {
+		return id;
+	}
+	public void setId(long id) {
+		this.id = id;
+	}
+	public String getFirstName() {
+		return firstName;
+	}
+	public void setFirstName(String firstName) {
+		this.firstName = firstName;
+	}
+	public String getLastName() {
+		return lastName;
+	}
+	public void setLastName(String lastName) {
+		this.lastName = lastName;
+	}
+	
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserService.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserService.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserService.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserService.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,26 @@
+/*
+
+    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.superbiz.struts;
+
+import java.util.List;
+
+public interface UserService {
+	public void add(User user);
+	public User find(int id);
+	public List<User> findAll();
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserServiceImpl.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserServiceImpl.java?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserServiceImpl.java (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/java/org/superbiz/struts/UserServiceImpl.java Fri Feb 13 08:38:24 2009
@@ -0,0 +1,42 @@
+/*
+
+    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.superbiz.struts;
+
+import java.util.List;
+
+import javax.ejb.Stateless;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+@Stateless
+public class UserServiceImpl implements UserService {
+
+	@PersistenceContext(unitName="user")
+	private EntityManager manager;
+	public void add(User user) {
+		manager.persist(user);
+	}
+
+	public User find(int id) {
+		return manager.find(User.class, id);
+	}
+
+	public List<User> findAll() {
+		return manager.createQuery("select u from User u").getResultList();
+	}
+
+}

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/META-INF/persistence.xml?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/META-INF/persistence.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/META-INF/persistence.xml Fri Feb 13 08:38:24 2009
@@ -0,0 +1,65 @@
+<?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.
+ -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
+        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+	version="1.0">
+<!-- Uses HSQLDB which comes bundles with OpenEJB -->
+	<persistence-unit name="user">
+		<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+		<jta-data-source>java:openejb/Resource/My DataSource</jta-data-source>
+		<non-jta-data-source>java:openejb/Resource/My Unmanaged DataSource</non-jta-data-source>
+		<class>org.superbiz.struts.User</class>
+		<properties>
+			<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
+		</properties>
+	</persistence-unit>
+	
+<!-- Uncomment the below persistence-unit if you want to use MySql. Make sure to comment out the persistence-unit above first. 
+      You would need to open <<Tomcat-install>>/conf/openejb.xml and add two Resource elements as shown. 
+      You would also need to create a database named userdb
+<Resource id="mysql_managed" type="DataSource">
+    JdbcDriver  com.mysql.jdbc.Driver
+    JdbcUrl     jdbc:mysql://localhost/userdb
+    UserName    root
+    Password    yourpassword
+    JtaManaged true
+</Resource>
+<Resource id="mysql_unmanaged" type="DataSource">
+    JdbcDriver  com.mysql.jdbc.Driver
+    JdbcUrl     jdbc:mysql://localhost/userdb
+    UserName    root
+    Password    yourpassword
+    JtaManaged  false
+</Resource>
+
+ -->
+	<!--
+	<persistence-unit name="user">
+		<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+		<jta-data-source>java:openejb/Resource/mysql_managed</jta-data-source>
+		<non-jta-data-source>java:openejb/Resource/mysql_unmanaged</non-jta-data-source>
+		<class>org.superbiz.struts.User</class>
+		<properties>
+			<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
+		</properties>
+	</persistence-unit>
+
+    -->
+</persistence>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/struts.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/struts.xml?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/struts.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/resources/struts.xml Fri Feb 13 08:38:24 2009
@@ -0,0 +1,44 @@
+<?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.
+ -->
+<!DOCTYPE struts PUBLIC 
+    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+    "http://struts.apache.org/dtds/struts-2.0.dtd">
+
+<struts>
+	<constant name="struts.devMode"  value="true"></constant>
+	<package name="default" namespace="/" extends="struts-default">
+		<action name="addUserForm" class="org.superbiz.struts.AddUserForm">
+			<result>/addUserForm.jsp</result>
+		</action>
+		<action name="addUser" class="org.superbiz.struts.AddUser">
+			<result name="success">/addedUser.jsp</result>
+			<result name='failure'>/addUserForm.jsp</result>
+		</action>
+		<action name="findUserForm" class="org.superbiz.struts.FindUserForm">
+			<result>/findUserForm.jsp</result>
+		</action>
+ 		<action name="findUser" class="org.superbiz.struts.FindUser">
+			<result name='success'>/displayUser.jsp</result>
+			<result name='failure'>/findUserForm.jsp</result>
+		</action>
+		<action name="listAllUsers" class="org.superbiz.struts.ListAllUsers">
+			<result>/displayUsers.jsp</result>
+		</action>
+		
+	</package>
+</struts>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/decorators.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/decorators.xml?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/decorators.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/decorators.xml Fri Feb 13 08:38:24 2009
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- 
+    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.
+ -->
+<decorators defaultdir="/decorators">
+ <decorator name="main" page="layout.jsp">
+  <pattern>/*</pattern>
+ </decorator>
+</decorators>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/web.xml?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/web.xml (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/WEB-INF/web.xml Fri Feb 13 08:38:24 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- 
+    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/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	version="2.5">
+	<display-name>Learn EJB3 and Struts2</display-name>
+	<filter>
+		<filter-name>struts2</filter-name>
+		<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
+		<init-param>
+			<param-name>actionPackages</param-name>
+			<param-value>com.lq</param-value>
+		</init-param>
+	</filter>
+	<filter>
+		<filter-name>struts-cleanup</filter-name>
+		<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
+	</filter>
+	<filter>
+		<filter-name>sitemesh</filter-name>
+		<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
+	</filter>
+	<filter-mapping>
+		<filter-name>struts-cleanup</filter-name>
+		<url-pattern>/*</url-pattern>
+	</filter-mapping>
+	<filter-mapping>
+		<filter-name>sitemesh</filter-name>
+		<url-pattern>/*</url-pattern>
+	</filter-mapping>
+	<filter-mapping>
+		<filter-name>struts2</filter-name>
+		<url-pattern>/*</url-pattern>
+	</filter-mapping>
+	<welcome-file-list>
+		<welcome-file>index.jsp</welcome-file>
+	</welcome-file-list>
+	<jsp-config>
+		<jsp-property-group >
+			<description>JSP configuration of all the JSP's </description>
+			<url-pattern>*.jsp</url-pattern>
+			<include-prelude>/prelude.jspf</include-prelude>
+		</jsp-property-group>
+	</jsp-config>
+</web-app>

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addUserForm.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addUserForm.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addUserForm.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addUserForm.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,23 @@
+<!-- 
+    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.
+ -->
+<title>Add User</title>
+<s:form action="addUser">
+	<s:textfield name="id" label="ID *" required="true"/>
+	<s:textfield name="firstName" label="First Name *" required="true"/>
+	<s:textfield name="lastName" label="Last Name *" required="true"/>
+	<s:submit />
+</s:form>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addedUser.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addedUser.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addedUser.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/addedUser.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,18 @@
+<!-- 
+    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.
+ -->
+<title>User added</title>
+<h3>User added successfully</h3>

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/decorators/layout.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/decorators/layout.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/decorators/layout.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/decorators/layout.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,43 @@
+<!-- 
+    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.
+ -->
+<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
+	prefix="decorator"%>
+<%@ taglib uri="http://www.opensymphony.com/sitemesh/page"
+	prefix="pages"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>My Site - <decorator:title default="Welcome!" /></title>
+<link rel="stylesheet" type="text/css" href="style/layout.css"/>
+<decorator:head />
+</head>
+<body>
+<div id='page'>
+<div id='header'><a href="addUserForm.action">Add User</a>
+| <a href="findUserForm.action">Find User</a>
+| <a href="listAllUsers.action">List all users</a></div>
+<div id='content'>
+<p style="color: red"><s:property value="errorMessage"/></p>
+<decorator:body />
+
+</div>
+<div id='footer'>Footer</div>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUser.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUser.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUser.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUser.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,23 @@
+<!-- 
+    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.
+ -->
+<title>User Details</title>
+<h2>User Details </h2>
+<table>
+<tr><td><b>ID</b></td><td>${user.id }</td></tr>
+<tr><td><b>First Name</b></td><td>${user.firstName }</td></tr>
+<tr><td><b>Last Name</b></td><td>${user.lastName }</td></tr>
+</table>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUsers.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUsers.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUsers.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/displayUsers.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,24 @@
+<!-- 
+    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.
+ -->
+<title>All Users</title>
+ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+ <table>
+ <tr><th>ID</th><th>First Name</th><th>Last Name</th></tr>
+ <c:forEach items="${users}" var="u">
+ <tr><td>${u.id }</td><td>${u.firstName }</td><td>${u.lastName }</td></tr>
+ </c:forEach>
+ </table>

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/findUserForm.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/findUserForm.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/findUserForm.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/findUserForm.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,21 @@
+<!-- 
+    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.
+ -->
+<title>Find User</title>
+<s:form action="findUser">
+	<s:textfield name="id" label="Enter ID *" required="true"/>
+	<s:submit />
+</s:form>
\ No newline at end of file

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/index.jsp?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/index.jsp (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/index.jsp Fri Feb 13 08:38:24 2009
@@ -0,0 +1,17 @@
+<!-- 
+    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.
+ -->
+<title>Main page</title>

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/prelude.jspf
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/prelude.jspf?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/prelude.jspf (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/prelude.jspf Fri Feb 13 08:38:24 2009
@@ -0,0 +1,2 @@
+<%@ taglib prefix="s" uri="/struts-tags"%>
+

Added: openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/style/layout.css
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/style/layout.css?rev=744030&view=auto
==============================================================================
--- openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/style/layout.css (added)
+++ openejb/trunk/openejb3/examples/webapps/struts/src/main/webapp/style/layout.css Fri Feb 13 08:38:24 2009
@@ -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.
+ -->
+body {
+	margin: 0;
+	padding: 0;
+	background: white;
+	text-align: center;
+}
+
+div#page {
+	width: 800px;
+	margin: 0 auto;
+	padding: 0;
+	background: white;
+	text-align: center;
+}
+
+div#header {
+	margin: 0 0 5em 0;
+	padding: 40px 20px;
+	color: white;
+	background: black;
+	text-align: center;
+}
+
+div#content {
+	margin: 0;
+	padding: 0;
+}
+
+div#footer {
+	color: white;
+	background-color: black;
+}
+
+a,a:link,a:visited,a:active {
+	color: white;
+	background-color: black;
+}
+a:hover{
+	text-decoration: underline;
+	font-size: larger;
+}
\ No newline at end of file