|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Result 的软件包 | |
|---|---|
| com.bastengao.struts2.freeroute | |
| com.bastengao.struts2.freeroute 中 Result 的使用 |
|---|
| com.bastengao.struts2.freeroute 中 Result 的子类 | |
|---|---|
class |
ChainResult
chain result. |
class |
HttpHeaderResult
http header result. |
class |
JsonResult
json result of JSON plugin. |
class |
StreamResult
stream result. |
| 返回 Result 的 com.bastengao.struts2.freeroute 中的方法 | |
|---|---|
static Result |
Result.create()
构造返回结果, resultType 默认为 "dispatcher" |
static Result |
Result.create(String resultType)
构造返回结果 |
Result |
Result.location(String value)
页面路径,如果有 |
Result |
Result.param(String name,
String value)
设置某个参数。 |
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||