I am looking in the /struts-2.1.2/src/plugins/rest/src/main/java
struts-2.1.2-all.zip.  It sounds like Wes has revealed how this works, which
would explain the struts-plugin.xml I am seeing.  If this is correct, it
sure sounds like a crazy way to implement a custom "mapper!"  Also, why the
variety of "REST" mapper classes in the distribution?




newton.dave wrote:
> 
> --- On Tue, 6/17/08, stanlick <[EMAIL PROTECTED]> wrote:
>> Are you looking at the source in
>> /struts-2.1.2/src/plugins/rest/src/main/java?
> 
> No, I had been looking in trunk.
> 
> S2.1.2, however, doesn't differ from trunk w.r.t. the action mapper (see
> appended diff). The config file wouldn't be in the Java directory, either;
> config files are in the resource directory--not sure what you're looking
> at.
> 
> Dave
> 
> -- Diff of S2.1.2 v. trunk REST plugin config file
> 
> ~/s2/svn $ diff -w trunk/plugins/rest/src/main/resources/struts-plugin.xml
> STRUTS_2_1_2/plugins/rest/src/main/resources/struts-plugin.xml 
> 4c4
> <  * $Id: struts-plugin.xml 663605 2008-06-05 13:31:01Z musachy $
> ---
>>  * $Id: struts-plugin.xml 651946 2008-04-27 13:41:38Z apetrelli $
> 32a33,34
>>       <bean type="com.opensymphony.xwork2.config.PackageProvider"
>> name="rest"
>> class="org.apache.struts2.rest.ControllerClasspathPackageProvider" />
>> 
> 45,48c47,48
> <     <!--  Overwrite Codebehind -->
> <     <constant name="struts.codebehind.classSuffix" value="Controller"/>
> <     <constant name="struts.codebehind.action.checkImplementsAction"
> value="false"/>
> <     <constant name="struts.codebehind.action.checkAnnotation"
> value="false"/>
> ---
>>     <!--  Disable the scanning by the codebehind plugin to prevent
>> duplicates -->
>>     <constant name="struts.configuration.classpath.disableActionScanning"
>> value="true" />
> 49a50
>>     <constant name="struts.configuration.rest.disableControllerScanning"
>> value="false" />
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RestActionMapper-tp17932711p17988764.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to