forked from apache/struts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WW-4533 Reverts the old behaviour of how empty action should be handled
- Loading branch information
1 parent
b155532
commit 609cb0b
Showing
4 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
apps/rest-showcase/src/main/java/org/demo/rest/example/IndexController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.demo.rest.example; | ||
|
||
import org.apache.struts2.convention.annotation.Action; | ||
import org.apache.struts2.convention.annotation.Result; | ||
import org.apache.struts2.convention.annotation.Results; | ||
|
||
@Results({ | ||
@Result(name="success", type="redirectAction", params = {"actionName" , "orders"}) | ||
}) | ||
public class IndexController { | ||
|
||
@Action("/") | ||
public String index() { | ||
return "success"; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters