1

Here in a simple package I am having different URL patterns, but for only URL pattern (*.htmlx) want to call action and interceptor.

How to use wildcard in action name. I tried but it doesn't work.

<package ....... >
<action name="*.htmlx" class="net.viralpatel.struts2.action.LoginAction1">
call a interceptor
/*.........
...........
*/
</action>

<action name="*.html" class="net.viralpatel.struts2.action.LoginAction2">
/*.........
...........
*/
</action>


<action name="*.jspx" class="net.viralpatel.struts2.action.LoginAction3">
/*.........
...........
*/
</action>

</package>
4

1 に答える 1

0

アクション マッピングでアクション拡張をアクション名として使用することはできません。struts.xml

<constant name="struts.action.extension" value="htmlx,,"/>
于 2013-07-16T11:12:08.587 に答える