Hi, I have been using struts for an year now and I always thought that expecting name and namespace of the action in URI is very limiting to application developers. It makes it very difficult to have actions mapping to UriTemplates like http://www.example.com/{foo}/{bar}/{baz}. Some times (as in my case), you might require a completely custom strategy of mapping uri to actions. To solve both these issues, I have written a simple plugin called. UriMapperPlugin. It allows you to specify custom uri matching classes e...@customurimatchingrule(matcherClassName ="com.myapp.MyActionUriMatcher", method = "show")public class MyAction { public void show() { //execute action }} orUri templates of the f...@uritemplatematchingrule(template="/products/{property1}/{property2}", method="show")public class MyAction1 { public void show() { //execute action } public void setProperty1(String value){} public void setProperty2(String value){} } It is not well tested yet, but I am using it in my current project.
The code is available at http://code.google.com/p/urimapperplugin/. I will like to get comments. Thanks,Unmesh _________________________________________________________________ The amazing world in sharp snaps http://news.in.msn.com/gallery/archive.aspx