我在定义 @Result 注释的“类型”参数时遇到问题
这是我的动作注释:
@Action(value="login",
results=@Result(name="success",location="index.page", type="tiles" ))
index.page 是我的瓦片定义,我如何定义“瓦片”实际上是瓦片结果?
在我使用 struts.xml 进行配置之前,我可以放在那里
<result-types>
<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult" />
</result-types>
无论我尝试什么,我总是得到:
SEVERE: Dispatcher initialization failed
Unable to load configuration. - [unknown location]
...
Caused by: The Result type [tiles] which is defined in the Result annotation ...
could not be found as a result-type defined for the Struts/XWork package
[com.action#convention-default#] - [unknown location]