struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <mcucchi...@apache.org>
Subject Re: [for struts 3] duplicate namespace and actionname why not throw a exception?
Date Wed, 31 Aug 2011 07:39:45 GMT
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 <hiyoucai@126.com> 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: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

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


Mime
View raw message