thank you, No problem, I have not used the JIRA system before, I will try it late, I think it is usefull to everyone.
------------------------------------------------------------------------------------------------------------------------- 发件人: Maurizio Cucchiara <[email protected]> 发送时间: 2011-08-31 15:40 主 题: Re: [for struts 3] duplicate namespace and actionname why not throw a exception? 收件人: Struts Developers List <[email protected]> Good point Hiyoucai, could you file an issue on JIRA [1]? [1] http://struts.apache.org/helping.html#issues Maurizio Cucchiara On 31 August 2011 03:45, hiyoucai <[email protected]> wrote: > Dear all: > > Duplicate id or name in spring*.xml file will throw a error exception when i > launch the web server app(like resin or tomcat server app) > > But in struts2-convention-plugin environment, all is well, that so puzzle > to me, why not throw a exception? see the code follow: > > one action '/index.do' mapping to two different method > ----------------------------------------------------------------- > public class IndexAction extends ActionSupport { > > @Action(value = "index") > public String A(){System.out.println("A....");} > > @Action(value = "index") > public String B(){System.out.println("B....");} > > } > ----------------------------------------------------------------- > > When i open the web browser and input the url httpL//127.0.0.1/index.do > > The really problem will be appear that is so puzzle. Sometime the console is > output A...., But sometime the console is output B.... > > I don't know which action method is mapped to the url. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
