struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasserzam...@apache.org>
Subject RE: convention plugin Issue
Date Sat, 07 Dec 2019 10:50:50 GMT
Hi,

I guess that the behavior of defining actions with same name and namespace is undefined. I
think it's not an issue because Convention Plugin has no avenue to distinguish between them
when you request http://localhost:8080/hello-world.

Regards.

>-----Original Message-----
>From: Zahid Rahman <zahidr1000@gmail.com>
>Sent: Thursday, December 5, 2019 4:51 PM
>To: Struts Users Mailing List <user@struts.apache.org>
>Subject: convention plugin Issue
>
>Hi,
>
>On this page
>https://struts.apache.org/plugins/convention/#setup
>
>if I have  com.example.actions.HelloWorld.java
>and
>uk.mypackage.actions.HelloWorld.java
>with  url http://localhost:8080/hello-world then
>uk.mypackage.actions.HelloWorld.java  execute is run.
>
>If I have
>uk.example.actions.HelloWorld.java
>and
>com.example.actions.HelloWorld.java
>then  com.example.actions.HelloWorld.java  execute is run.
>
>uk.mypackage.actions.HelloWorld,java overrides the other two.
Mime
View raw message