LoginSignup
0
1

More than 3 years have passed since last update.

SAStruts 基本 index

Last updated at Posted at 2019-07-07

index

  • SAStrutsは、Webアプリケーションのルートにアクセスすると、ルートパッケージ.action.IndexActionというクラスがあれば、自動的にそのアクションに遷移します。
IndexAction.java
package tutorial.action;

import org.seasar.struts.annotation.Execute;

public class IndexAction {

    @Execute(validator = false)
    public String index() {
        return "index.jsp";
    }
}
  • アクションに遷移した後、@Executeのついた実行メソッドが呼び出されます。

  • メソッドの戻り値は遷移先になります。IndexAction#index()の場合は、index.jspに遷移します。

参照

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1