Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1258 - in development/main/planet/facilities: . http http/blocks http/blocks/tapestry http/blocks/webappserver http/examples http/examples/hangman http/examples/hangman/etc http/examples/hangman/src http/examples/hangman/src/main http/examples/hangman/src/main/tutorial http/examples/hangman/src/main/tutorial/hangman http/examples/hangman/src/web http/examples/hangman/src/web/WEB-INF http/examples/hangman/src/web/css http/examples/hangman/src/web/images http/examples/tapestry http/examples/tapestry/etc

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1258 - in development/main/planet/facilities: . http http/blocks http/blocks/tapestry http/blocks/webappserver http/examples http/examples/hangman http/examples/hangman/etc http/examples/hangman/src http/examples/hangman/src/main http/examples/hangman/src/main/tutorial http/examples/hangman/src/main/tutorial/hangman http/examples/hangman/src/web http/examples/hangman/src/web/WEB-INF http/examples/hangman/src/web/css http/examples/hangman/src/web/images http/examples/tapestry http/examples/tapestry/etc
  • Date: Wed, 22 Dec 2004 20:36:04 +0100

Author: niclas
Date: Wed Dec 22 20:36:04 2004
New Revision: 1258

Added:
development/main/planet/facilities/http/blocks/tapestry/
development/main/planet/facilities/http/blocks/tapestry/build.xml
(contents, props changed)
development/main/planet/facilities/http/blocks/webappserver/build.xml
(contents, props changed)
development/main/planet/facilities/http/examples/hangman/
development/main/planet/facilities/http/examples/hangman/build.xml
(contents, props changed)
development/main/planet/facilities/http/examples/hangman/etc/
development/main/planet/facilities/http/examples/hangman/etc/web.xml
(contents, props changed)
development/main/planet/facilities/http/examples/hangman/hangman.war
(contents, props changed)
development/main/planet/facilities/http/examples/hangman/src/
development/main/planet/facilities/http/examples/hangman/src/main/
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Failed.java
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Guess.java
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/HangmanGame.java
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/HangmanGameException.java
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Home.java
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Success.java
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Visit.java
(contents, props changed)
development/main/planet/facilities/http/examples/hangman/src/web/
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Failed.html
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Failed.page

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Guess.html
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Guess.page

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Home.html
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Home.page

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Success.html
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Success.page

development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/hangman2.application
development/main/planet/facilities/http/examples/hangman/src/web/css/

development/main/planet/facilities/http/examples/hangman/src/web/css/hangman.css
(contents, props changed)
development/main/planet/facilities/http/examples/hangman/src/web/images/

development/main/planet/facilities/http/examples/hangman/src/web/images/0.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/1.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/10.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/2.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/3.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/4.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/5.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/6.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/7.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/8.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/9.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/loose.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/images/win.gif
(contents, props changed)

development/main/planet/facilities/http/examples/hangman/src/web/index.html
(contents, props changed)
development/main/planet/facilities/http/examples/tapestry/build.xml
(contents, props changed)
development/main/planet/facilities/http/index.xml (contents, props
changed)
Removed:
development/main/planet/facilities/http/examples/tapestry/etc/
Modified:
development/main/planet/facilities/http/README.TXT
development/main/planet/facilities/http/blocks/index.xml
development/main/planet/facilities/http/examples/index.xml
development/main/planet/facilities/index.xml
Log:
Abandon the servlet use and going for a WAR deployment.

Modified: development/main/planet/facilities/http/README.TXT
==============================================================================
--- development/main/planet/facilities/http/README.TXT (original)
+++ development/main/planet/facilities/http/README.TXT Wed Dec 22 20:36:04
2004
@@ -1,15 +1,14 @@
-
-To build:
-
- $ cd planet/facilities/http
- $ ant
+
+To build:
+
+ $ cd planet/facilities/http
+ $ ant

To start the http server:

- $ cd test
- $ merlin target/deliverables/blocks/avalon-http-test.block
-
-To see the result:
+ $ metro artifact:block:dpml/planet/http/dpml-http-test.block
+
+To see the result:

http://localhost:8080/test/primary


Modified: development/main/planet/facilities/http/blocks/index.xml
==============================================================================
--- development/main/planet/facilities/http/blocks/index.xml (original)
+++ development/main/planet/facilities/http/blocks/index.xml Wed Dec 22
20:36:04 2004
@@ -161,5 +161,42 @@
<include key="dpml-planet-http-servlet"/>
</dependencies>
</project>
+
+ <project basedir="tapestry">
+ <info>
+ <group>dpml/planet/http/examples/tapestry</group>
+ <name>dpml-http-examples-tapestry</name>
+ <version>1.0.0</version>
+ <type>block</type>
+ </info>
+ <dependencies>
+ <include key="servletapi" />
+ <include key="tapestry" />
+ </dependencies>
+ </project>
+
+ <resource>
+ <info>
+ <group>tapestry</group>
+ <name>tapestry</name>
+ <version>3.0</version>
+ </info>
+ <dependencies>
+ <include key="bsf" />
+ <include key="commons-beanutils" />
+ <include key="commons-codec" />
+ <include key="commons-collections" />
+ <include key="commons-digester" />
+ <include key="commons-fileupload" />
+ <include key="commons-lang" />
+ <include key="commons-logging" />
+ <include key="ognl" />
+ <include key="servletapi" />
+ <include key="oro" />
+ <include key="hivemind" />
+ <include key="hivemind-lib" />
+ <include key="javassist" />
+ </dependencies>
+ </resource>
</index>


Added: development/main/planet/facilities/http/blocks/tapestry/build.xml
==============================================================================
--- (empty file)
+++ development/main/planet/facilities/http/blocks/tapestry/build.xml Wed
Dec 22 20:36:04 2004
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Niclas Hedman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.dpml.net/central/about/legal/
+ *
+ * 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 name="dpml-http-examples-tapestry" default="install" basedir="."
+ xmlns:magic="antlib:net.dpml.magic"
xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <magic:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="build" depends="standard.build">
+ <x:block name="tapestry-example">
+ <x:component name="socketlistener"
class="net.dpml.planet.http.impl.SocketListener" />
+ <x:component name="httpserver"
class="net.dpml.planet.http.impl.HttpServerImpl" />
+
+ <x:include name="web-context"
uri="artifact:block:dpml/planet/http/dpml-planet-http-webcontext#SNAPSHOT" />
+ <x:include name="static-context"
uri="artifact:block:dpml/planet/http/dpml-planet-http-static#SNAPSHOT" />
+
+ </x:block>
+ </target>
+
+</project>

Added: development/main/planet/facilities/http/blocks/webappserver/build.xml
==============================================================================
--- (empty file)
+++ development/main/planet/facilities/http/blocks/webappserver/build.xml
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Niclas Hedman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.dpml.net/central/about/legal/
+ *
+ * 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 name="dpml-planet-http-context" default="install" basedir="."
+ xmlns:magic="antlib:net.dpml.magic"
xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <magic:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="build" depends="standard.build">
+ <x:block name="default-context">
+ <x:component name="context"
class="net.dpml.planet.http.impl.WebContextImpl" />
+ <x:component name="security-handler"
class="net.dpml.planet.http.impl.SecurityHandler" />
+
+ <x:component name="resource-handler"
class="net.dpml.planet.http.impl.ResourceHandler" >
+ <x:parameters>
+ <x:parameter name="allow-directory" value="true" />
+ <x:parameter name="allow-methods" value="GET" />
+ </x:parameters>
+ </x:component>
+
+ <x:component name="notfound-handler"
class="net.dpml.planet.http.impl.NotFoundHandler" />
+
+ <x:component name="errorpage-handler"
class="net.dpml.planet.http.impl.ErrorPageHandler" >
+ <x:parameters>
+ <x:parameter name="login-page" value="/login.html" />
+ <x:parameter name="error-page" value="/login_error.html" />
+ </x:parameters>
+ </x:component>
+
+ <x:component name="request-log"
class="net.dpml.planet.http.impl.NcsaRequestLog" >
+ <x:parameters>
+ <x:parameter name="filename" value="logs/request.log" />
+ <x:parameter name="append" value="true" />
+ <x:parameter name="extended" value="true" />
+ </x:parameters>
+ </x:component>
+ </x:block>
+ </target>
+
+</project>

Added: development/main/planet/facilities/http/examples/hangman/build.xml
==============================================================================
--- (empty file)
+++ development/main/planet/facilities/http/examples/hangman/build.xml Wed
Dec 22 20:36:04 2004
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Niclas Hedman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.dpml.net/central/about/legal/
+ *
+ * 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 name="hangman" default="install" basedir="."
+ xmlns:magic="antlib:net.dpml.magic"
xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <magic:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="build" depends="standard.build">
+ <war destfile="hangman.war" webxml="etc/web.xml">
+ <fileset dir="src/web"/>
+ <classes dir="target/classes"/>
+ </war>
+ <x:install />
+ </target>
+
+</project>

Added: development/main/planet/facilities/http/examples/hangman/etc/web.xml
==============================================================================
--- (empty file)
+++ development/main/planet/facilities/http/examples/hangman/etc/web.xml
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd";>
+
+<web-app>
+ <display-name>hangman</display-name>
+ <servlet>
+ <servlet-name>hangman</servlet-name>
+ <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>hangman</servlet-name>
+ <url-pattern>/app</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+</web-app>

Added: development/main/planet/facilities/http/examples/hangman/hangman.war
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Failed.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Failed.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,14 @@
+package tutorial.hangman;
+
+import org.apache.tapestry.IEngine;
+import org.apache.tapestry.html.BasePage;
+
+public class Failed extends BasePage {
+
+ public void attach(IEngine engine) {
+ super.attach(engine);
+ HangmanGame game = ((Visit)engine.getVisit()).getGame();
+ game.setGameComplete(true);
+ }
+
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Guess.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Guess.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,61 @@
+package tutorial.hangman;
+
+import org.apache.tapestry.IAsset;
+import org.apache.tapestry.IRequestCycle;
+import org.apache.tapestry.html.BasePage;
+
+public class Guess extends BasePage {
+
+ private String error = "";
+
+ public void detach() {
+ error = "";
+ super.detach();
+ }
+
+ public boolean getHasError() {
+ if ((error == null) || (error.length() == 0)) {
+ return (false);
+ }
+ return (true);
+ }
+
+ public String getError() {
+ return error;
+ }
+
+ public void makeGuess(IRequestCycle cycle) {
+ Object[] parameters = cycle.getServiceParameters();
+ String letter = (String) (parameters[0]);
+ HangmanGame game = ((Visit)getVisit()).getGame();
+ try {
+ game.guess(letter);
+ } catch (HangmanGameException ex) {
+ error = ex.getMessage();
+ if (game.getFailed())
+ cycle.activate("Failed");
+ return;
+ }
+ // A good guess.
+ if (game.getDone()) {
+ cycle.activate("Success");
+ }
+ }
+
+ //Retrieve the appropriate asset for the
+ //number of wrong guesses
+ public IAsset getGuessImageAsset() {
+ HangmanGame game = ((Visit)getVisit()).getGame();
+ int iMissed = game.getMissed();
+ int iMaxMisses = game.getMaxMisses();
+ int iFactor = 1;
+ if(iMaxMisses==3) {
+ iFactor = 3;
+ } else if(iMaxMisses==5) {
+ iFactor = 2;
+ }
+ String name = "wrong_" + iMissed*iFactor;

+ return (getAsset(name));
+ }
+
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/HangmanGame.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/HangmanGame.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,391 @@
+package tutorial.hangman;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Random;
+
+public class HangmanGame implements Serializable {
+ private int iMaxMisses = 5;
+ private int iMissed = 0;
+ private String sCurWord = "";
+ private ArrayList alUnusedLetters = null;
+ private String sGuess = "";
+ private String sGuessedRightLetters = "";
+ private boolean bGameComplete = false;
+ private static Random r = new Random();
+
+ public void start(int iMaxMisses) {
+ this.iMaxMisses = iMaxMisses;
+ iMissed = 0;
+
+ bGameComplete = false;
+
+ sCurWord =
saWordList[r.nextInt(saWordList.length)].toUpperCase();
+ sGuessedRightLetters = "";
+
+ sGuess = "";
+ for (int count = 0; count < sCurWord.length(); count++) {
+ sGuess += "_ ";
+ }
+
+ alUnusedLetters = new ArrayList();
+ String sLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ for (int count = 0; count < sLetters.length(); count++) {
+ alUnusedLetters.add(sLetters.substring(count, count +
1));
+ }
+ }
+
+ public String getCorrectWord() {
+ return (sCurWord);
+ }
+
+ public boolean getGameComplete() {
+ return (bGameComplete);
+ }
+ public void setGameComplete(boolean value) {
+ bGameComplete = value;
+ }
+
+ //The current state of the guessed word
+ public String getGuess() {
+ return (sGuess);
+ }
+
+ public int getMaxMisses() {
+ return (iMaxMisses);
+ }
+
+ public int getMissed() {
+ return (iMissed);
+ }
+
+ public ArrayList getUnused() {
+ return (alUnusedLetters);
+ }
+
+ public void guess(String sLetter) throws HangmanGameException {
+ //Remove the letter from the "unused letter" list
+ for (int count = 0; count < alUnusedLetters.size(); count++) {
+ if (((String)
alUnusedLetters.get(count)).equals(sLetter)) {
+ alUnusedLetters.remove(count);
+ break;
+ }
+ }
+ //Is the letter in the word?
+ if (sCurWord.indexOf(sLetter) == -1) {
+ //This letter is NOT in the word
+ iMissed++;
+ throw new HangmanGameException(
+ "Letter " + sLetter + " is not in the word");
+ }
+ //Good letter! Reveal it in the guess
+ sGuessedRightLetters += sLetter;
+
+ //Rebuild the guessed word... make sure
+ //guessed letters are visible.
+ sGuess = "";
+ for (int count = 0; count < sCurWord.length(); count++) {
+ String sFind = sCurWord.substring(count, count + 1);
+ if (sGuessedRightLetters.indexOf(sFind) == -1) {
+ sGuess += "_ ";
+ } else {
+ sGuess += sFind + " ";
+ }
+ }
+
+ }
+
+ public boolean getFailed() {
+ if (iMissed > iMaxMisses) {
+ return (true);
+ }
+ return (false);
+ }
+
+ public boolean getDone() {
+ if (sGuess.indexOf("_") == -1) {
+ //All letters guessed right!
+ return (true);
+ }
+ return (false);
+ }
+
+ private static String saWordList[] =
+ {
+ "access",
+ "account",
+ "acquisition",
+ "acrobat",
+ "acronym",
+ "active",
+ "address",
+ "adobe",
+ "affiliate",
+ "algorithm",
+ "alias",
+ "analog",
+ "anchor",
+ "animation",
+ "anonymous",
+ "apache",
+ "apple",
+ "aspect",
+ "audio",
+ "authorization",
+ "backbone",
+ "backdoor",
+ "bandwidth",
+ "banner",
+ "barter",
+ "batch",
+ "benchmark",
+ "beta",
+ "binary",
+ "biometrics",
+ "bitmap",
+ "bookmark",
+ "broadband",
+ "broadcast",
+ "browser",
+ "buzzword",
+ "cable",
+ "cache",
+ "campus",
+ "channel",
+ "character",
+ "clean",
+ "click",
+ "client",
+ "collaborative",
+ "command",
+ "commerce",
+ "compatible",
+ "compression",
+ "computer",
+ "confidentiality",
+ "configuration",
+ "configure",
+ "connect",
+ "connectivity",
+ "content",
+ "convergence",
+ "cookies",
+ "coopetition",
+ "counter",
+ "crackable",
+ "crash",
+ "crusader",
+ "customize",
+ "cyborg",
+ "daemon",
+ "deactivation",
+ "decode",
+ "decryption",
+ "default",
+ "device",
+ "digital",
+ "directory",
+ "distribution",
+ "document",
+ "domain",
+ "download",
+ "dynamic",
+ "electronic",
+ "embedded",
+ "enterprise",
+ "environment",
+ "ethernet",
+ "evangelist",
+ "export",
+ "extensions",
+ "extranet",
+ "failure",
+ "favorite",
+ "feature",
+ "file",
+ "filter",
+ "finger",
+ "firewall",
+ "firmware",
+ "flame",
+ "flavor",
+ "format",
+ "forum",
+ "fractal",
+ "freeware",
+ "functionality",
+ "gaming",
+ "gateway",
+ "geek",
+ "genius",
+ "gigabyte",
+ "globalization",
+ "google",
+ "graffiti",
+ "graphics",
+ "groupware",
+ "guardian",
+ "hacker",
+ "hairball",
+ "handle",
+ "handshake",
+ "handwriting",
+ "headmount",
+ "hexadecimal",
+ "hierarchy",
+ "homepage",
+ "host",
+ "hotmail",
+ "hyperlink",
+ "hypermedia",
+ "hypertext",
+ "identity",
+ "inbox",
+ "index",
+ "information",
+ "infotainment",
+ "infrared",
+ "infrastructure",
+ "initialization",
+ "install",
+ "integrate",
+ "integrity",
+ "interactive",
+ "interface",
+ "internet",
+ "interoperability",
+ "intranet",
+ "java",
+ "javascript",
+ "kernel",
+ "keyboard",
+ "kilobyte",
+ "kiosk",
+ "knowledge",
+ "language",
+ "laptop",
+ "launch",
+ "legacy",
+ "leverage",
+ "link",
+ "link",
+ "linux",
+ "load",
+ "log",
+ "logoff",
+ "macintosh",
+ "macromedia",
+ "mainframe",
+ "management",
+ "megabyte",
+ "megahertz",
+ "meltdown",
+ "microsoft",
+ "modem",
+ "monitor",
+ "mozilla",
+ "multicast",
+ "nanosecond",
+ "napster",
+ "navigate",
+ "netscape",
+ "newsgroups",
+ "norton",
+ "obsolete",
+ "offline",
+ "online",
+ "optimize",
+ "outage",
+ "packet",
+ "payment",
+ "paypal",
+ "peer",
+ "peripheral",
+ "photoshop",
+ "portable",
+ "portal",
+ "postmaster",
+ "program",
+ "programmer",
+ "programming",
+ "prompt",
+ "proprietary",
+ "protocol",
+ "publisher",
+ "quantum",
+ "query",
+ "queue",
+ "qwerty",
+ "radar",
+ "radio",
+ "reboot",
+ "redirect",
+ "reformat",
+ "refresh",
+ "remote",
+ "resolution",
+ "resolve",
+ "resonate",
+ "robot",
+ "runtime",
+ "satellite",
+ "scanner",
+ "schedule",
+ "script",
+ "search",
+ "security",
+ "server",
+ "shareware",
+ "skyscraper",
+ "sniffer",
+ "socket",
+ "spam",
+ "speed",
+ "spider",
+ "spoofing",
+ "spyware",
+ "stack",
+ "static",
+ "strawman",
+ "string",
+ "stylus",
+ "subscribe",
+ "success",
+ "support",
+ "synchronization",
+ "technobabble",
+ "terminal",
+ "thread",
+ "throughput",
+ "thumbnail",
+ "titanium",
+ "toggle",
+ "toolbar",
+ "trackball",
+ "traffic",
+ "transponder",
+ "turnkey",
+ "unix",
+ "upgrade",
+ "uplink",
+ "upload",
+ "upside",
+ "upstream",
+ "user",
+ "vanilla",
+ "vaporware",
+ "vector",
+ "video",
+ "virtual",
+ "virus",
+ "wallpaper",
+ "windows",
+ "wireless",
+ "workstation",
+ "worm",
+ "yahoo",
+ "zip",
+ "zombie",
+ "zone" };
+
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/HangmanGameException.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/HangmanGameException.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,7 @@
+package tutorial.hangman;
+
+public class HangmanGameException extends Exception {
+ public HangmanGameException (String message) {
+ super(message);
+ }
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Home.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Home.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,49 @@
+package tutorial.hangman;
+
+import org.apache.tapestry.IRequestCycle;
+import org.apache.tapestry.html.BasePage;
+
+public class Home extends BasePage {
+
+ public static final int EASY = 10;
+ public static final int MEDIUM = 5;
+ public static final int HARD = 3;
+
+ private int misses = 0;
+ private String error = "";
+
+ public void detach() {
+ misses = 0;
+ error = null;
+ super.detach();
+ }
+
+ public int getMisses() {
+ return misses;
+ }
+
+ public void setMisses(int value) {
+ misses = value;
+ }
+
+ public String getError() {
+ return error;
+ }
+
+ public boolean getHasError() {
+ if ((error == null) || (error.length() == 0)) {
+ return (false);
+ }
+ return (true);
+ }
+
+ public void formSubmit(IRequestCycle cycle) {
+ if (misses == 0) {
+ error = "Please select a game difficulty.";
+ return;
+ }
+ Visit visit = (Visit)getVisit();
+ visit.startGame(misses);
+ cycle.activate("Guess");
+ }
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Success.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Success.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,14 @@
+package tutorial.hangman;
+
+import org.apache.tapestry.IEngine;
+import org.apache.tapestry.html.BasePage;
+
+public class Success extends BasePage {
+
+ public void attach(IEngine engine) {
+ super.attach(engine);
+ HangmanGame game = ((Visit)engine.getVisit()).getGame();
+ game.setGameComplete(true);
+ }
+
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Visit.java
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/main/tutorial/hangman/Visit.java
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,19 @@
+package tutorial.hangman;
+
+import java.io.Serializable;
+
+public class Visit implements Serializable {
+ private HangmanGame oGame = null;
+ public HangmanGame getGame() {
+ if(oGame==null) {
+ oGame=new HangmanGame();
+ }
+ return(oGame);
+ }
+ public void startGame(int iMaxMisses) {
+ //We are completely resetting
+ oGame=null;
+ getGame();
+ oGame.start(iMaxMisses);
+ }
+}

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Failed.html
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Failed.html
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,10 @@
+<html>
+<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Hangman
Failed"/>
+<body>
+<p class="headerText">You Lose!</p>
+<p><img jwcid="looseImage"/></p>
+<p class="guessLettersPreText">The word was:
+<span class="hiddenWord" jwcid="insertCorrectWord"/>.
+<p><a jwcid="home">Start Again</a>
+</body>
+</html>
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Failed.page
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Failed.page
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE page-specification
+ PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
+ "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>
+
+<page-specification class="tutorial.hangman.Failed">
+ <context-asset name="stylesheet" path="/css/hangman.css"/>
+ <context-asset name="loose" path="/images/loose.gif"/>
+ <component id="looseImage" type="Image">
+ <binding name="image" expression="assets.loose"/>
+ </component>
+ <component id="insertCorrectWord" type="Insert">
+ <binding name="value" expression="page.visit.game.correctWord"/>
+ </component>
+ <component id="home" type="PageLink">
+ <static-binding name="page">
+ Home
+ </static-binding>
+ </component>
+</page-specification>

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Guess.html
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Guess.html
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,33 @@
+<html>
+<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Hangman
Guess"/>
+<body>
+<span jwcid="ifNotComplete">
+ <p class="headerText">Make a Guess</p>
+ <p><img jwcid="guessImage"/></p>
+ <p class="hiddenWord">
+ <span jwcid="insertGuess"/>
+ </p>
+ <p>
+ You have made <span jwcid="insertMissed"/> bad guesses,
+ out of a maximum of <span jwcid="insertMaxMisses"/>.
+ <span jwcid="ifError">
+ <p class="error"><span jwcid="insertError"/></p>
+ </span>
+ <p class="guessLettersPreText">
+ Guess:
+ <span class="guessLetters">
+ <span jwcid="e">
+ <a jwcid="guess"><span jwcid="insertLetter"/></a>
+ </span>
+ </span>
+ <p>
+ <a jwcid="giveUp">Give up?</a>
+</span>
+<span jwcid="ifComplete">
+ <p class="headerText">The game is already finished.</p>
+ <p class="guessLettersPreText">The word was:
+ <span class="hiddenWord" jwcid="insertCorrectWord"/>.
+ <p><a jwcid="home">Start Again</a>
+</span>
+</body>
+</html>
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Guess.page
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Guess.page
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE page-specification
+ PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
+ "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>
+
+<page-specification class="tutorial.hangman.Guess">
+ <context-asset name="stylesheet" path="/css/hangman.css"/>
+ <context-asset name="wrong_0" path="/images/0.gif"/>
+ <context-asset name="wrong_1" path="/images/1.gif"/>
+ <context-asset name="wrong_2" path="/images/2.gif"/>
+ <context-asset name="wrong_3" path="/images/3.gif"/>
+ <context-asset name="wrong_4" path="/images/4.gif"/>
+ <context-asset name="wrong_5" path="/images/5.gif"/>
+ <context-asset name="wrong_6" path="/images/6.gif"/>
+ <context-asset name="wrong_7" path="/images/7.gif"/>
+ <context-asset name="wrong_8" path="/images/8.gif"/>
+ <context-asset name="wrong_9" path="/images/9.gif"/>
+ <context-asset name="wrong_10" path="/images/10.gif"/>
+ <component id="guessImage" type="Image">
+ <binding name="image" expression="guessImageAsset"/>
+ </component>
+ <component id="insertGuess" type="Insert">
+ <binding name="value" expression="page.visit.game.guess"/>
+ </component>
+ <component id="insertMissed" type="Insert">
+ <binding name="value" expression="page.visit.game.missed"/>
+ </component>
+ <component id="insertMaxMisses" type="Insert">
+ <binding name="value" expression="page.visit.game.maxMisses"/>
+ </component>
+ <component id="ifComplete" type="Conditional">
+ <binding name="condition" expression="page.visit.game.gameComplete"/>
+ </component>
+ <component id="ifNotComplete" type="Conditional">
+ <binding name="condition"
expression="!page.visit.game.gameComplete"/>
+ </component>
+ <component id="ifError" type="Conditional">
+ <binding name="condition" expression="hasError"/>
+ </component>
+ <component id="insertError" type="Insert">
+ <binding name="value" expression="error"/>
+ </component>
+ <component id="e" type="Foreach">
+ <binding name="source" expression="page.visit.game.unused"/>
+ </component>
+ <component id="guess" type="DirectLink">
+ <binding name="listener" expression="listeners.makeGuess"/>
+ <binding name="parameters" expression="components.e.value"/>
+ </component>
+ <component id="insertLetter" type="Insert">
+ <binding name="value" expression="components.e.value"/>
+ </component>
+ <component id="giveUp" type="PageLink">
+ <static-binding name="page">
+ Failed
+ </static-binding>
+ </component>
+ <component id="insertCorrectWord" type="Insert">
+ <binding name="value" expression="page.visit.game.correctWord"/>
+ </component>
+ <component id="home" type="PageLink">
+ <static-binding name="page">
+ Home
+ </static-binding>
+ </component>
+</page-specification>

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Home.html
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Home.html
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,35 @@
+<html>
+<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Hangman"/>
+<body>
+<p class="headerText">Tapestry Hangman</p>
+<p>
+ This is the standard game of Hangman. You must guess
+ a word, a letter at a time. If you make too many
+ mistakes, you lose!</p>
+<form jwcid="form">
+ <span jwcid="group">
+ <span jwcid="ifError">
+ <span class="error" jwcid="insertError"/>
+ </span>
+ <table>
+ <tr>
+ <td><input jwcid="inputEasy"/></td>
+ <td>Easy game; you are allowed ten misses.</td>
+ </tr>
+ <tr>
+ <td><input jwcid="inputMedium"/></td>
+ <td>Medium game; you are allowed five misses.</td>
+ </tr>
+ <tr>
+ <td><input jwcid="inputHard"/></td>
+ <td>Hard game; you are only allowed three misses.</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" value="Play!"></td>
+ </tr>
+ </table>
+ </span>
+</form>
+</body>
+</html>
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Home.page
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Home.page
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE page-specification
+ PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
+ "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>
+
+<page-specification class="tutorial.hangman.Home">
+ <context-asset name="stylesheet" path="/css/hangman.css"/>
+ <component id="form" type="Form">
+ <binding name="listener" expression="listeners.formSubmit" />
+ </component>
+ <component id="ifError" type="Conditional">
+ <binding name="condition" expression="hasError" />
+ </component>
+ <component id="insertError" type="Insert">
+ <binding name="value" expression="error" />
+ </component>
+ <component id="group" type="RadioGroup">
+ <binding name="selected" expression="misses" />
+ </component>
+ <component id="inputEasy" type="Radio">
+ <binding name="value" expression=" AT tutorial.hangman.Home@EASY" />
+ </component>
+ <component id="inputMedium" type="Radio">
+ <binding name="value" expression=" AT tutorial.hangman.Home@MEDIUM" />
+ </component>
+ <component id="inputHard" type="Radio">
+ <binding name="value" expression=" AT tutorial.hangman.Home@HARD" />
+ </component>
+</page-specification>

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Success.html
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Success.html
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,10 @@
+<html>
+<span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Hangman
Success"/>
+<body>
+<p class="headerText">You Win!</p>
+<p><img jwcid="winImage"/></p>
+<p class="guessLettersPreText">The word was:
+<span class="hiddenWord" jwcid="insertCorrectWord"/>.
+<p><a jwcid="home">Start Again</a>
+</body>
+</html>
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Success.page
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/Success.page
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE page-specification
+ PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
+ "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>
+
+<page-specification class="tutorial.hangman.Success">
+ <context-asset name="stylesheet" path="/css/hangman.css"/>
+ <context-asset name="win" path="/images/win.gif"/>
+ <component id="winImage" type="Image">
+ <binding name="image" expression="assets.win"/>
+ </component>
+ <component id="insertCorrectWord" type="Insert">
+ <binding name="value" expression="page.visit.game.correctWord"/>
+ </component>
+ <component id="home" type="PageLink">
+ <static-binding name="page">
+ Home
+ </static-binding>
+ </component>
+</page-specification>

Added:
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/hangman2.application
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/WEB-INF/hangman2.application
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application
+ PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
+ "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>
+
+<application name="hangman2"
engine-class="org.apache.tapestry.engine.BaseEngine" >
+ <description>Hangman2 Application</description>
+ <property name="org.apache.tapestry.visit-class">
+ tutorial.hangman.Visit
+ </property>
+ <page name="Home" specification-path="Home.page"/>
+</application>

Added:
development/main/planet/facilities/http/examples/hangman/src/web/css/hangman.css
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/css/hangman.css
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,34 @@
+body {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12pt;
+}
+
+.headerText {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 16pt;
+ font-weight: bold;
+}
+
+.error {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 14pt;
+ font-weight: bold;
+ color: #FF0000;
+}
+
+.hiddenWord {
+ font-family: "Courier New", Courier, mono;
+ font-size: 14pt;
+ font-weight: bold;
+}
+
+.guessLettersPreText {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 13pt;
+}
+
+.guessLetters {
+ font-family: "Courier New", Courier, mono;
+ font-size: 13pt;
+ font-weight: bold;
+}
\ No newline at end of file

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/0.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/1.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/10.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/2.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/3.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/4.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/5.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/6.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/7.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/8.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/9.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/loose.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/images/win.gif
==============================================================================
Binary file. No diff available.

Added:
development/main/planet/facilities/http/examples/hangman/src/web/index.html
==============================================================================
--- (empty file)
+++
development/main/planet/facilities/http/examples/hangman/src/web/index.html
Wed Dec 22 20:36:04 2004
@@ -0,0 +1,9 @@
+<HTML>
+<meta http-equiv="Refresh" content="0; URL=/hangman/app" />
+<HEADER>
+<TITLE>hangman2</TITLE>
+</HEADER>
+<BODY>
+<P><A HREF="/hangman2/app">If you are not automatically redirected click
here</A></P>
+</BODY>
+</HTML>

Modified: development/main/planet/facilities/http/examples/index.xml
==============================================================================
--- development/main/planet/facilities/http/examples/index.xml (original)
+++ development/main/planet/facilities/http/examples/index.xml Wed Dec 22
20:36:04 2004
@@ -20,156 +20,18 @@

<import index="../../index.xml" />

- <project basedir="tapestry">
+ <project basedir="hangman">
<info>
- <group>dpml/planet/http/examples</group>
- <name>dpml-http-examples-tapestry</name>
+ <group>dpml/planet/http/examples/tapestry/hangman</group>
+ <name>hangman</name>
<version>1.0.0</version>
- <type>block</type>
+ <type>war</type>
</info>
<dependencies>
- <include key="dpml-planet-http-api" />
- <include key="dpml-planet-http-impl" />
- <include key="servletapi" />
<include key="tapestry" />
</dependencies>
</project>

- <resource>
- <info>
- <group>tapestry</group>
- <name>tapestry</name>
- <version>3.0</version>
- </info>
- <dependencies>
- <include key="bsf" />
- <include key="commons-beanutils" />
- <include key="commons-codec" />
- <include key="commons-collections" />
- <include key="commons-digester" />
- <include key="commons-fileupload" />
- <include key="commons-lang" />
- <include key="commons-logging" />
- <include key="ognl" />
- <include key="servletapi" />
- <include key="oro" />
- <include key="hivemind" />
- <include key="hivemind-lib" />
- <include key="javassist" />
- </dependencies>
- </resource>
-
- <resource>
- <info>
- <name>bsf</name>
- <version>2.3.0</version>
- <group>bsf</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-beanutils</name>
- <version>1.7</version>
- <group>commons-beanutils</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-codec</name>
- <version>1.2</version>
- <group>commons-codec</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-collections</name>
- <version>2.1</version>
- <group>commons-collections</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-digester</name>
- <version>1.6</version>
- <group>commons-digester</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-fileupload</name>
- <version>1.0</version>
- <group>commons-fileupload</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-lang</name>
- <version>2.0</version>
- <group>commons-lang</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>commons-logging</name>
- <version>1.0.4</version>
- <group>commons-logging</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>hivemind</name>
- <version>1.0</version>
- <group>hivemind</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>hivemind-lib</name>
- <version>1.0</version>
- <group>hivemind</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>oro</name>
- <version>2.0.6</version>
- <group>oro</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>javassist</name>
- <version>2.6</version>
- <group>jboss</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>servletapi</name>
- <version>2.3</version>
- <group>servletapi</group>
- </info>
- </resource>
-
- <resource>
- <info>
- <name>ognl</name>
- <version>2.6.3</version>
- <group>ognl</group>
- </info>
- </resource>

</index>


Added: development/main/planet/facilities/http/examples/tapestry/build.xml
==============================================================================
--- (empty file)
+++ development/main/planet/facilities/http/examples/tapestry/build.xml Wed
Dec 22 20:36:04 2004
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Niclas Hedman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.dpml.net/central/about/legal/
+ *
+ * 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 name="http-examples-tapestry" default="default" basedir="."
+ xmlns:magic="antlib:net.dpml.magic"
xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <magic:import uri="artifact:template:dpml/magic/reactor"/>
+
+</project>

Added: development/main/planet/facilities/http/index.xml
==============================================================================
--- (empty file)
+++ development/main/planet/facilities/http/index.xml Wed Dec 22 20:36:04
2004
@@ -0,0 +1,225 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Niclas Hedman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.dpml.net/central/about/legal/
+ *
+ * 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.
+-->
+
+<index>
+ <import index="blocks/index.xml" />
+ <import index="examples/index.xml" />
+
+ <project basedir="api">
+ <info>
+ <group>dpml/planet/http</group>
+ <name>dpml-planet-http-api</name>
+ <version>1.0.0</version>
+ <status>SNAPSHOT</status>
+ </info>
+ <dependencies>
+ <include key="org.mortbay.jetty"/>
+ </dependencies>
+ </project>
+
+ <project basedir="spi">
+ <info>
+ <group>dpml/planet/http</group>
+ <name>dpml-planet-http-spi</name>
+ <version>1.0.0</version>
+ <status>SNAPSHOT</status>
+ </info>
+ <dependencies>
+ <include key="dpml-planet-http-api"/>
+ <include key="dpml-composition-api" runtime="false"/>
+ <include key="org.mortbay.jetty"/>
+ </dependencies>
+ <plugins>
+ <include key="dpml-meta-tools"/>
+ </plugins>
+ </project>
+
+ <project basedir="util">
+ <info>
+ <group>dpml/planet/http</group>
+ <name>dpml-planet-http-util</name>
+ <version>1.0.0</version>
+ <status>SNAPSHOT</status>
+ </info>
+ <dependencies>
+ <include key="dpml-planet-http-api"/>
+ </dependencies>
+ <plugins>
+ <include key="dpml-meta-tools"/>
+ </plugins>
+ </project>
+
+ <project basedir="impl">
+ <info>
+ <group>dpml/planet/http</group>
+ <name>dpml-planet-http-impl</name>
+ <version>1.0.0</version>
+ <status>SNAPSHOT</status>
+ </info>
+ <dependencies>
+ <include key="dpml-activity-api"/>
+ <include key="dpml-context-api"/>
+ <include key="dpml-logging-api"/>
+ <include key="dpml-configuration-api"/>
+ <include key="dpml-parameters-api"/>
+ <include key="dpml-service-api"/>
+ <include key="dpml-planet-http-spi"/>
+ <include key="dpml-planet-http-util"/>
+ <include key="dpml-composition-api" runtime="false"/>
+ <include key="dpml-configuration-impl"/>
+ <include key="org.mortbay.jetty"/>
+ <include key="org.mortbay.jaas"/>
+ <include key="servletapi" runtime="true" build="false" />
+ <include key="commons-logging" build="false" runtime="true"/>
+ <include key="jsp-api" runtime="true" build="false" />
+ <include key="jasper-runtime" runtime="true" build="false" />
+ <include key="jasper-compiler" runtime="true" build="false" />
+ </dependencies>
+ <plugins>
+ <include key="dpml-meta-tools"/>
+ </plugins>
+ </project>
+
+ <project basedir="test">
+ <info>
+ <group>dpml/planet/http</group>
+ <name>dpml-planet-http-test</name>
+ </info>
+ <dependencies>
+ <include key="dpml-planet-http-impl"/>
+ <include key="org.mortbay.jetty"/>
+ <include key="servletapi"/>
+ </dependencies>
+ <plugins>
+ <include key="dpml-meta-tools"/>
+ </plugins>
+ </project>
+
+ <resource>
+ <info>
+ <name>bsf</name>
+ <version>2.3.0</version>
+ <group>bsf</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-beanutils</name>
+ <version>1.7</version>
+ <group>commons-beanutils</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-codec</name>
+ <version>1.2</version>
+ <group>commons-codec</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-collections</name>
+ <version>2.1</version>
+ <group>commons-collections</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-digester</name>
+ <version>1.6</version>
+ <group>commons-digester</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-fileupload</name>
+ <version>1.0</version>
+ <group>commons-fileupload</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-lang</name>
+ <version>2.0</version>
+ <group>commons-lang</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>commons-logging</name>
+ <version>1.0.4</version>
+ <group>commons-logging</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>hivemind</name>
+ <version>1.0</version>
+ <group>hivemind</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>hivemind-lib</name>
+ <version>1.0</version>
+ <group>hivemind</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>oro</name>
+ <version>2.0.6</version>
+ <group>oro</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>javassist</name>
+ <version>2.6</version>
+ <group>jboss</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>servletapi</name>
+ <version>2.3</version>
+ <group>servletapi</group>
+ </info>
+ </resource>
+
+ <resource>
+ <info>
+ <name>ognl</name>
+ <version>2.6.3</version>
+ <group>ognl</group>
+ </info>
+ </resource>
+
+</index>

Modified: development/main/planet/facilities/index.xml
==============================================================================
--- development/main/planet/facilities/index.xml (original)
+++ development/main/planet/facilities/index.xml Wed Dec 22 20:36:04
2004
@@ -21,9 +21,7 @@
<import index="../../metro/index.xml"
uri="artifact:module:dpml/metro/dpml-metro#SNAPSHOT"/>

- <import index="./http/blocks/index.xml"/>
- <import index="./http/examples/index.xml"/>
-
+ <import index="./http/index.xml"/>
<import index="./reflector/blocks/index.xml"/>

<!--
@@ -344,100 +342,6 @@
-->

<!--
- Planet Facilities - HTTP
- -->
-
- <project basedir="http/api">
- <info>
- <group>dpml/planet/http</group>
- <name>dpml-planet-http-api</name>
- <version>1.0.0</version>
- <status>SNAPSHOT</status>
- </info>
- <dependencies>
- <include key="org.mortbay.jetty"/>
- </dependencies>
- </project>
-
- <project basedir="http/spi">
- <info>
- <group>dpml/planet/http</group>
- <name>dpml-planet-http-spi</name>
- <version>1.0.0</version>
- <status>SNAPSHOT</status>
- </info>
- <dependencies>
- <include key="dpml-planet-http-api"/>
- <include key="dpml-composition-api" runtime="false"/>
- <include key="org.mortbay.jetty"/>
- </dependencies>
- <plugins>
- <include key="dpml-meta-tools"/>
- </plugins>
- </project>
-
- <project basedir="http/util">
- <info>
- <group>dpml/planet/http</group>
- <name>dpml-planet-http-util</name>
- <version>1.0.0</version>
- <status>SNAPSHOT</status>
- </info>
- <dependencies>
- <include key="dpml-planet-http-api"/>
- </dependencies>
- <plugins>
- <include key="dpml-meta-tools"/>
- </plugins>
- </project>
-
- <project basedir="http/impl">
- <info>
- <group>dpml/planet/http</group>
- <name>dpml-planet-http-impl</name>
- <version>1.0.0</version>
- <status>SNAPSHOT</status>
- </info>
- <dependencies>
- <include key="dpml-activity-api"/>
- <include key="dpml-context-api"/>
- <include key="dpml-logging-api"/>
- <include key="dpml-configuration-api"/>
- <include key="dpml-parameters-api"/>
- <include key="dpml-service-api"/>
- <include key="dpml-planet-http-spi"/>
- <include key="dpml-planet-http-util"/>
- <include key="dpml-composition-api" runtime="false"/>
- <include key="dpml-configuration-impl"/>
- <include key="org.mortbay.jetty"/>
- <include key="org.mortbay.jaas"/>
- <include key="servletapi" runtime="true" build="false" />
- <include key="commons-logging" build="false" runtime="true"/>
- <include key="jsp-api" runtime="true" build="false" />
- <include key="jasper-runtime" runtime="true" build="false" />
- <include key="jasper-compiler" runtime="true" build="false" />
- </dependencies>
- <plugins>
- <include key="dpml-meta-tools"/>
- </plugins>
- </project>
-
- <project basedir="http/test">
- <info>
- <group>dpml/planet/http</group>
- <name>dpml-planet-http-test</name>
- </info>
- <dependencies>
- <include key="dpml-planet-http-impl"/>
- <include key="org.mortbay.jetty"/>
- <include key="servletapi"/>
- </dependencies>
- <plugins>
- <include key="dpml-meta-tools"/>
- </plugins>
- </project>
-
- <!--
Planet Facilities - JMX
-->




  • svn commit: r1258 - in development/main/planet/facilities: . http http/blocks http/blocks/tapestry http/blocks/webappserver http/examples http/examples/hangman http/examples/hangman/etc http/examples/hangman/src http/examples/hangman/src/main http/examples/hangman/src/main/tutorial http/examples/hangman/src/main/tutorial/hangman http/examples/hangman/src/web http/examples/hangman/src/web/WEB-INF http/examples/hangman/src/web/css http/examples/hangman/src/web/images http/examples/tapestry http/examples/tapestry/etc, niclas, 12/22/2004

Archive powered by MHonArc 2.6.24.

Top of Page