struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aelbery Lee <>
Subject Re: Struts2 REST plugin problems
Date Sat, 02 Jul 2011 08:39:00 GMT
Hi, all.

    I'm currently using struts 2.2.3. I want to mix normal action with
restful action in the same web app. I searched and found here.

In my struts.mxl:

	<constant name="struts.devMode" value="true" />

	<constant name="struts.convention.action.mapAllMatches" value="true" />
	<constant name="struts.convention.default.parent.package"
value="rest-default" />

	<constant name="struts.convention.package.locators" value="action" />

	<constant name="struts.mapper.class"
	<constant name="struts.mapper.prefixMapping" value="/ws:rest,:struts"/>
	<constant name="" value="/ws"/>
	<package name="common" namespace="/mvc" extends="struts-default">
	    <action name="*" class="com.mycompany.CommonSupport">

If I removed the PrefixBasedActionMapper and prefixMapping two lines,
/myapp/mymodule works fine with restful action.

But now /myapp/mymodule raise exception "method not found", execute();
And /myapp/ws/mymodule raise exception "action not found", ws action.

So I must make a mistake. Thanks for you help.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message