Uploaded image for project: 'Cubby'
  1. Cubby
  2. CUBBY-159

Redirect/ForwardでMapを使用せずに、簡単にパラメータを追加できるようにしました

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0-rc2
    • None
    • Core
    • 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);
      

      Attachments

        Activity

          People

            agata agata
            agata agata
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: