Thanks for the help and your reply. i implemented the named pattern matcher but cant get it to work. I have the following config in my struts.xml
<bean type="com.opensymphony.xwork2.util.PatternMatcher" name="namedVariablePatternMatcher" class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/> <constant name="struts.enable.SlashesInActionNames" value="true"/> <constant name="struts.patternMatcher" value="namedVariablePatternMatcher"/> On my action I added the namespace annotation for example @Namespace("/person/name/test-example/{id}") this uses the restActionMapper but does not return a ActionConfig object with the namespace /person/name and the name test-example. When I stepped into this method in the DefaultConfiguration class the action TestExampleController had not been added to the map when it tries to find a config object. I then tried the same url but removed the namespace annotation from the action and typed the url into the browser. This went through the same code but this time returned the correct ActionConfig object and the action executed successfully. Am i missing a step somewhere All help is appreciated. thanks in advance. Musachy Barroso wrote: > > You want to look at wildcards: > > http://struts.apache.org/2.x/docs/wildcard-mappings.html > > That feature that Alex is refering to (coined advanced wildcards for > lack of imagination), is in trunk and has not been released yet. > > musachy > > On Mon, Sep 28, 2009 at 5:57 AM, Alex Siman <aleksandr.si...@gmail.com> > wrote: >> >> Look here: >> http://www.nabble.com/parameters-in-url-td25602877.html >> >> Restful plugin is not so good as it supposed to be. >> >> struts-restful wrote: >>> >>> Does anyone know how to get the restful web service to call a method >>> different to show or edit. >>> >>> For example I have the following url >>> >>> http://localhost:8080/testeg/my/example/example-count/1/count.xml >>> >>> I want this to call the method count in my ExampleCountController. The >>> URl >>> goes to the action and calls the setId method setting the Id 2 but does >>> not go to the count method >>> >>> Thanks >>> >> >> -- >> View this message in context: >> http://www.nabble.com/restful-URL-issue-tp25641701p25645156.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/restful-URL-issue-tp25641701p25664679.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org