geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r722816 - in /geronimo/plugins/tuscany/trunk/samples: ./ helloworld-listener/ helloworld-listener/src/ helloworld-listener/src/main/ helloworld-listener/src/main/java/ helloworld-listener/src/main/java/sample/ helloworld-listener/src/main/w...
Date Wed, 03 Dec 2008 09:07:31 GMT
Author: vamsic007
Date: Wed Dec  3 01:07:31 2008
New Revision: 722816

URL: http://svn.apache.org/viewvc?rev=722816&view=rev
Log:
Helloworld Event Listener sample.
 o Adds a ServletContextListener

Added:
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml   (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp 
 (with props)
Modified:
    geronimo/plugins/tuscany/trunk/samples/pom.xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml Wed Dec  3 01:07:31
2008
@@ -0,0 +1,58 @@
+<?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>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.geronimo.plugins</groupId>
+        <artifactId>tuscany-samples</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>helloworld-listener</artifactId>
+    <name>Geronimo Plugins :: Helloworld Event Listener sample</name>
+    <packaging>war</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.5_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+            </plugin>
+        </plugins>
+        <finalName>${artifactId}</finalName>
+    </build>
+</project>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
Wed Dec  3 01:07:31 2008
@@ -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.    
+ */
+package sample;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * Helloworld SCA service interface.
+ * 
+ * @version $Rev$ $Date$
+ */
+@Remotable
+public interface Helloworld {
+    String sayHello(String name);
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/Helloworld.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
Wed Dec  3 01:07:31 2008
@@ -0,0 +1,154 @@
+/*
+ * 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 sample;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+import org.osoa.sca.ComponentContext;
+import org.osoa.sca.annotations.ComponentName;
+import org.osoa.sca.annotations.Context;
+import org.osoa.sca.annotations.Property;
+import org.osoa.sca.annotations.Reference;
+
+/**
+ * A ServletContextListener that invokes SCA Helloworld services through injected references
and sets a "hellotxt"
+ * attributes in the ServletContext.
+ * 
+ * @version $Rev$ $Date$
+ */
+public class HelloworldServletContextListener implements ServletContextListener {
+    public static final String HELLO_TXT = "hellotxt";
+
+    @Reference
+    protected Helloworld clservice;
+    
+    // Reference name specified in the annotation
+    @Reference(name="clservice2")
+    protected Helloworld ser2;
+    
+    // Reference annotation on setter method
+    private Helloworld ser3;
+    @Reference
+    public void setClservice3(Helloworld service3) {
+        this.ser3 = service3;
+    }
+    
+    /* Test for required */
+    @Reference(required=false)
+    protected Helloworld clservice4;
+    
+    @Reference(required=false)
+    protected Helloworld clservice5;
+    
+    @Reference(required=true)
+    protected Helloworld clservice6;
+
+    @Property
+    protected String clproperty1;
+    
+    // Property name specified in the annotation
+    @Property(name="clproperty2")
+    protected int prop2;
+    
+    // Property annotation on setter method
+    private double prop3;
+    @Property
+    public void setClproperty3(double property3) {
+        this.prop3 = property3;
+    }
+    
+    /* Test for required */
+    @Property(required=false)
+    protected String clproperty4;
+
+    @Property(required=false)
+    protected String clproperty5;
+
+    @Property(required=true)
+    protected String clproperty6;
+    
+    @ComponentName
+    protected String scaComponentName;
+
+    // Annotation on setter method
+    private String scaComponentName1;
+    @ComponentName
+    public void setScaComponentName1(String scaComponentName1) {
+        this.scaComponentName1 = scaComponentName1;
+    }
+    
+    @Context
+    protected ComponentContext componentContext;
+
+    // Annotation on setter method
+    private ComponentContext componentContext1;
+    @Context
+    public void setCompContext(ComponentContext ctx) {
+        componentContext1 = ctx;
+    }
+
+
+    public void contextInitialized(ServletContextEvent event) {
+        ServletContext sc = event.getServletContext();
+        sc.setAttribute(HELLO_TXT, prepareMessage("Pandu"));
+    }
+
+    public void contextDestroyed(ServletContextEvent event) {
+    }
+
+    private String prepareMessage(String name) {
+        StringBuffer sb = new StringBuffer();
+        String greeting = clservice.sayHello(name);
+        String greeting2 = ser2.sayHello(name);
+        String greeting3 = ser3.sayHello(name);
+        
+        sb.append("<h2>Apache Tuscany Helloworld ServletContextListener</h2>");
+        sb.append("<h3>@Reference</h3>");
+        sb.append("<br>Injected into field. <br><strong>Result: </strong>"
+ greeting);
+        sb.append("<br><br>Injected into field with reference name specified
in the annotation. <br><strong>Result: </strong>" + greeting2);
+        sb.append("<br><br>Injected using setter method. <br><strong>Result:
</strong>" + greeting3);
+        sb.append("<br><br>Required is false. Reference is not specified. "+clservice4);
+        sb.append("<br><br>Required is false. Reference is specified. "+clservice5);
+        sb.append("<br><br>Required is true. Reference is specified. "+clservice6);
+        sb.append("<hr>");
+        
+        sb.append("<h3>@Property</h3>");
+        sb.append("<br>Injected into field: property1 = "+clproperty1);
+        sb.append("<br>Injected into field with property name specified in the annotation:
property2 = "+prop2);
+        sb.append("<br>Injected using setter method: Property3 = "+prop3);
+        sb.append("<br>Required is false. Property is not specified. "+clproperty4);
+        sb.append("<br>Required is false. Property is specified. "+clproperty5);
+        sb.append("<br>Required is true. Property is specified. "+clproperty6);
+        sb.append("<hr>");
+        
+        sb.append("<h3>@ComponentName</h3>");
+        sb.append("<br>Injected into annotated field: "+scaComponentName);
+        sb.append("<br>Injected using annotated method: "+scaComponentName1);
+        sb.append("<hr>");
+
+        sb.append("<h3>@Context</h3>");
+        sb.append("<br>Injected into annotated field: "+componentContext);
+        sb.append("<br>Injected using annotated method: "+componentContext1);
+        sb.append("<hr>");
+
+        return sb.toString();
+    }
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/java/sample/HelloworldServletContextListener.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
Wed Dec  3 01:07:31 2008
@@ -0,0 +1,36 @@
+<?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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2">
+  <environment>
+    <moduleId>
+      <groupId>test</groupId>
+      <artifactId>helloworld-listener</artifactId>
+      <version>2.0</version>
+      <type>car</type>
+    </moduleId>
+    <dependencies/>
+    <hidden-classes/>
+    <non-overridable-classes/>
+  </environment>
+  <context-root>helloworld-listener</context-root>
+</web-app>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
Wed Dec  3 01:07:31 2008
@@ -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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://sample"
+           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+           name="helloworld-listener">
+
+    <component name="helloworldListenerComponent">
+        <implementation.web web-uri="helloworld-listener.war"/>
+        <reference name="clservice" target="HelloworldComponent"/>
+        <reference name="clservice2" target="HelloworldTeluguComponent"/>
+        <reference name="Clservice3" target="HelloworldFrenchComponent"/>
+        <!-- <reference name="clservice4" target="HelloworldComponent"/> -->
+        <reference name="clservice5" target="HelloworldComponent"/>
+        <reference name="clservice6" target="HelloworldComponent"/>
+        
+        <property name="clproperty1" type="xsd:string">ClProp1</property>
+        <property name="clproperty2" type="xsd:int">700</property>
+        <property name="Clproperty3" type="xsd:double">0.007</property>
+        <!-- <property name="clproperty4" type="xsd:string">ClProp4</property>
-->
+        <property name="clproperty5" type="xsd:string">ClProp5</property>
+        <property name="clproperty6" type="xsd:string">ClProp6</property>
+    </component>
+</composite>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
Wed Dec  3 01:07:31 2008
@@ -0,0 +1,36 @@
+<?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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<web-app version="2.5"
+    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">
+
+  <display-name>Helloworld Event Listener sample</display-name>
+  <listener>
+      <listener-class>sample.HelloworldServletContextListener</listener-class>
+  </listener>
+
+  <welcome-file-list id="WelcomeFileList">
+    <welcome-file>hello.jsp</welcome-file>
+  </welcome-file-list>
+</web-app>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp?rev=722816&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp Wed
Dec  3 01:07:31 2008
@@ -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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page import="sample.HelloworldServletContextListener"%>
+<html>
+  <head><title>Helloworld Event Listener sample</title></head>
+  <body>
+    <h1>Helloworld Event Listener sample</h1>
+
+    <%=getServletContext().getAttribute(HelloworldServletContextListener.HELLO_TXT)%>
+  </body>
+</html>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-listener/src/main/webapp/hello.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/plugins/tuscany/trunk/samples/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/pom.xml?rev=722816&r1=722815&r2=722816&view=diff
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/pom.xml (original)
+++ geronimo/plugins/tuscany/trunk/samples/pom.xml Wed Dec  3 01:07:31 2008
@@ -44,6 +44,7 @@
                 <module>helloworld-jsp</module>
                 <module>helloworld-servlet</module>
                 <module>helloworld-filter</module>
+                <module>helloworld-listener</module>
                 <module>helloworld-ejb</module>
                 <module>helloworld-web</module>
                 <module>helloworld-mdb-ejb</module>



Mime
View raw message