alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (struts-hangman.xml)

This example Struts source code file (struts-hangman.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

apache, apache, configuration, doctype, doctype, foundation//dtd, public, software, software, struts, utf-8, utf-8

The Struts struts-hangman.xml source code

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
	<package name="hangman" extends="struts-default" namespace="/hangman">
		<action name="hangmanMenu">
			<result type="freemarker">/hangman/hangmanMenu.ftl
		</action>
		<action name="hangmanAjax" class="startHangmanAction">
			<result type="freemarker">/hangman/hangmanAjax.ftl		
		</action>
		<action name="hangmanNonAjax" class="startHangmanAction">
			<result type="freemarker">/hangman/hangmanNonAjax.ftl
		</action>
		<action name="test">
			<result type="freemarker">/hangman/test.ftl
		</action>
		<action name="guessCharacter" class="guessCharacterAction">
			<result type="freemarker">/hangman/blank.ftl
		</action>
		<action name="guessCharacterNonAjax" class="guessCharacterAction">
			<result type="freemarker">/hangman/hangmanNonAjax.ftl
		</action>
	</package>
	
	
	
	<package name="hangman-ajax" extends="struts-default" namespace="/hangman/ajax">
		<action name="blank">
			<result type="freemarker">/hangman/blank.ftl
		</action>
		<action name="updateVocabCharacters" class="getUpdatedHangmanAction">
			<result type="freemarker">/hangman/updateVocabCharacters.ftl
		</action>
		<action name="updateCharacterAvailable" class="getUpdatedHangmanAction">
			<result type="freemarker">/hangman/updateCharacterAvailable.ftl
		</action>
		<action name="updateScaffold" class="getUpdatedHangmanAction">
			<result type="freemarker">/hangman/updateScaffold.ftl
		</action>
		<action name="updateGuessLeft" class="getUpdatedHangmanAction">
			<result type="freemarker">/hangman/updateGuessLeft.ftl
		</action>
	</package>
</struts>	

Other Struts examples (source code examples)

Here is a short list of links related to this Struts struts-hangman.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.