TopAction.java 1.85 KB
Newer Older
Kim Gyeongeun committed
1 2
package jp.agentec.sinaburocast.action.user;

3 4 5 6
import org.apache.log4j.Logger;
import org.seasar.struts.annotation.ActionForm;
import org.seasar.struts.annotation.Execute;

Kim Gyeongeun committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
import jp.agentec.sinaburocast.action.AbstractAction;
import jp.agentec.sinaburocast.common.annotation.NoLogin;
import jp.agentec.sinaburocast.form.user.TopForm;
import jp.agentec.sinaburocast.service.TestService;

@NoLogin
public class TopAction extends AbstractAction {
	private final Logger logger = Logger.getLogger(getClass());

	public TestService testService;

	@ActionForm
	public TopForm topForm;
//	public TestServiceTest testServiceTest;

	@Execute(validator = false)
	public String aboutHtml() {

		return "/user/top/about.html";
	}

	@Execute(validator = false)
	public String howtoHtml() {

		return "/user/top/howto.html";
	}

    @Execute(validator = false)
	public String ruleHtml() {

		if (topForm.qPage == null){
			return "/user/top/rule.html";
		}else{
			return "/user/top/rule" + topForm.qPage + ".html";
		}
	}

    @Execute(validator = false)
	public String ruleHtmlSp() {

		return "/user/regist/registRule.html";
	}

	@Execute(validator = false)
	public String login() {
		return "login.html";
	}

	@Execute(validator = false)
	public String askHtml() {

		return "/user/top/ask.html";
	}

	@Execute(validator = false)
	public String passwordMailSendEnd() {
		return "myPage/passwordMailSendEnd.html";
	}

	@Execute(validator = false)
	public String userRegist2() {

		return "userRegist.html";
	}

	@Execute(validator = false)
	public String privacyHtml() {

		return "/user/top/privacy.html";
	}

	@Execute(validator = false)
	public String pointm() {

		return "/user/top/pointm.html";
	}
	
	@Execute(validator = false)
	public String faqHtml() {

		return "/user/top/faq.html";
	}
89 90 91 92 93 94
	
	@Execute(validator = false)
	public String newUserRegist() {

		return "/user/top/newUserRegist.html";
	}
Kim Gyeongeun committed
95 96

}