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

GetUpdatedHangmanAction

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

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



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

        System.out.println("\n\n\n");
        System.out.println("hangman="+hangman);
        System.out.println("available = "+hangman.getCharactersAvailable().size());
        System.out.println("guess left="+hangman.guessLeft());
        System.out.println("\n\n\n");

        return SUCCESS;
    
public HangmangetHangman()

        return hangman;
    
public voidsetHangman(Hangman hangman)

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

        this.session = session;