FileDocCategorySizeDatePackage
GuessCharacterAction.javaAPI DocApache Struts 2.0.9 Apps1862Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.hangman

GuessCharacterAction

public class GuessCharacterAction extends com.opensymphony.xwork2.ActionSupport implements org.apache.struts2.interceptor.SessionAware

Fields Summary
private static final long
serialVersionUID
private Map
session
private Character
character
private Hangman
hangman
Constructors Summary
Methods Summary
public java.lang.Stringexecute()


         
        hangman = (Hangman) session.get(HangmanConstants.HANGMAN_SESSION_KEY);
        hangman.guess(character);

        return SUCCESS;
    
public java.lang.CharactergetCharacter()

        return this.character;
    
public HangmangetHangman()

        return hangman;
    
public voidsetCharacter(java.lang.Character character)

        this.character = character;
    
public voidsetSession(java.util.Map session)

        this.session = session;