Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following settings can be customized. See the developer guide.

Setting

Description

Default

Possible Values

struts.coc.defaultMethod

the default method of a action when request wihout method name
指定当一个请求直接映射到action时的默认访问方法

index

any

struts.coc.requestLimited

limit the request get json/text result from method must define the annotation
指定是否限制只有定义了json/text的注解才返回json/text数据

false

true|false

struts.coc.methodNameAsResult

dedicate the method name as result name when a request cann't match the method of the action
设置是否使用方法名称作为视图名称返回,当指定的URI没有找到对应action的方法时

true

true|false

struts.coc.handleMessage

dedicate whether handle the action message
指示是否处理action的信息,处理后可以在redirect后获取上次action设置的信息,通常用在像添加、编辑成功后的跳转处理中

true

true|false

...