@Result アノテーションの「type」パラメーターの定義に問題があります
ここに私のアクション注釈があります:
@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]