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

StartHangmanAction

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

Fields Summary
private static final long
serialVersionUID
private HangmanService
service
private Hangman
hangman
private Map
session
Constructors Summary
public StartHangmanAction(HangmanService service)



       
        this.service = service;
    
Methods Summary
public java.lang.Stringexecute()


        hangman = service.startNewGame();
        session.put(HANGMAN_SESSION_KEY, hangman);

        return SUCCESS;
    
public HangmangetHangman()

        return hangman;
    
public voidsetSession(java.util.Map session)

        this.session = session;