[CUBBY-159] Redirect/ForwardでMapを使用せずに、簡単にパラメータを追加できるようにしました Created: 2008-08-10 Updated: 2008-08-17 Resolved: 2008-08-14 |
|
Status: | Closed |
Project: | Cubby |
Component/s: | Core |
Affects Version/s: | None |
Fix Version/s: | 1.1.0-rc2 |
Type: | Improvement | Priority: | Major |
Reporter: | agata | Assignee: | agata |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
現在だとパラメータを追加するのに以下のようなコードになります。 Map<String, String[]> params = new HashMap<String, String[]>(); params.put("name", new String[] {this.name }); return new Redirect(IndexAction.class, "index", params); もっと簡単にできるようにしたいので、以下のようなメソッドを追加するのはどうでしょうか? return new Redirect(IndexAction.class, "index").param("name", this.name); |
Comments |
Comment by agata [ 2008-08-14 ] |
r1147-1148で対応しました。 |
Comment by agata [ 2008-08-13 ] |
Forwardも対応しますね。 |
Comment by baba [ 2008-08-10 ] |
これはあるとうれしいですね。 |