add this to your struts.xml:

<constant name="struts.codebehind.classSuffix" value="Controller"/>
<constant name="struts.codebehind.action.checkImplementsAction" value="false"/>
<constant name="struts.codebehind.action.checkAnnotation" value="false"/>
<constant name="struts.codebehind.action.defaultMethodName" value="index"/>
<constant name="struts.configuration.classpath.defaultParentPackage"
value="rest-default" />

does it work after that?
musachy

On Fri, Dec 26, 2008 at 12:51 PM, Musachy Barroso <musa...@gmail.com> wrote:
> As Codebehind was deprecated REST should build on top of Convention,
> you might want to start a new thread for this (maybe we broke
> something in REST?).
>
> musachy
>
> On Fri, Dec 26, 2008 at 12:46 PM, Al Sutton <a...@funkyandroid.com> wrote:
>> I've just dropped the 2.1.3 jars into an app which was working with 2.1.2
>> and the rest URLs appear to no longer work.
>>
>> Previously / fired off Controller.index() in my actions package. Now I just
>> get;
>>
>> "T here is no Action mapped for namespace / and action name . - [unknown
>> location]"
>>
>> I've traced through to where RestActionProxyFactory calls through to
>> DefaultActionProxy.prepare() on line 59, and it seems that the action name
>> is apps whereas all of the keys inside DefaultActionPropxy,prepare are
>> appsController, and hence a problem arises.
>>
>> I couldn't see any info about it in the version notes, is it something wierd
>> I've done?
>>
>> Al.
>>
>> Musachy Barroso wrote:
>>>
>>> The Struts 2.1.3 test build is now available.
>>>
>>> Release notes:
>>> * [http://struts.apache.org/2.x/docs/version-notes-213.html]
>>>
>>> Distribution:
>>> * [http://people.apache.org/builds/struts/2.1.3/]
>>>
>>> Maven 2 staging repository:
>>> * [http://people.apache.org/builds/struts/2.1.3/m2-staging-repository/]
>>>
>>> Once you have had a chance to review the test build, please respond
>>> with a vote on its quality:
>>>
>>> [ ] Leave at test build
>>> [ ] Alpha
>>> [ ] Beta
>>> [ ] General Availability (GA)
>>>
>>> Everyone who has tested the build is invited to vote. Votes by PMC
>>> members are considered binding. A vote passes if there are at least
>>> three binding +1s and more +1s than -1s.
>>>
>>> The vote will remain open for at least 72 hours, longer upon request.
>>> A vote can be amended at any time to upgrade or downgrade the quality
>>> of the release based on future experience. If an initial vote
>>> designates the build as "Beta", the release will be submitted for
>>> mirroring and announced to the user list. Once released as a public
>>> beta, subsequent quality votes on a build may be held on the user
>>> list.
>>>
>>> As always, the act of voting carries certain obligations. A binding
>>> vote not only states an opinion, but means that the voter is agreeing
>>> to help do the work
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: dev-h...@struts.apache.org
>>>
>>>
>>
>>
>> --
>> ======
>> Funky Android Limited is registered in England & Wales with the company
>> number  6741909. The registered head office is Kemp House, 152-160 City
>> Road, London,  EC1V 2NX, UK.
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
>> For additional commands, e-mail: dev-h...@struts.apache.org
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to