package hogehoge.action;

import javax.annotation.Resource;
import org.seasar.struts.annotation.ActionForm;
import org.seasar.struts.annotation.Execute;

import hogehoge.form.TestForm;

public class TestAction {
  public Integer result;
  
  @ActionForm
  @Resource
  protected TestForm testForm;
  
  @Execute(validator = false)
  public String index() {
    return "hoge.jsp";
  }
  
  @Execute(input = "hoge.jsp")
  public String submit() {
    result = Integer.valueOf(testForm.hoge1) * Integer.valueOf(testForm.hoge2);
    return "hoge.jsp";
  }
}