sorry, there is a typping error the method is doSomething()
On Tue, Jan 20, 2009 at 5:17 PM, KuaJiang Ying <kjy...@gmail.com> wrote: > hello,i'm building a webapp using struts2+spring+hibernate > > given url: > > http://ip:port/appName/someModule/someExampleAction/doSomething?id=1&otherParam=xx > > i want to map to class com.xx.yy.someModule.action.SomeExampleAction > > package com.xx.yy.someModule.action > @Component > @Scope("prototype") > public class SomeExcampleAction { > public doSomething1(){ > return "sth"; > } > public something2(){ return "something2"; > } > public something3(){ return "something3"; > } > } > > and then go to jsp page : webapproot/someModule/someExample/sth.jsp > > also , i don't want to write a lot configiration in struts.xml, despite > using wild-mapping , there was still to much config > > i read doc of Convention and REST plugin,but it seams they cann't act as i > like > > > how should I config struts2 and convention,rest plugin ? or is there any > other plugin can do it ? or should I write a plugin myself? > > thx very much > > > > > > >