Struts 2.x 之 @Result

@Result(name="success",type="redirectAction",params={"actionName","orders"})
  • name - Result name; default Action.SUCCESS
  • value - Value of result (result destination)
  • type - Type of result; default NullResult. For example:
    • ServletRedirectResult
    • ServletActionRedirectResult - Equivalent to redirect-action type in XML config.
    • TilesResult
  • params - An Array of the parameters in the form {key1, value1, key2, value2}

你可能感兴趣的:(xml,struts)