Hi Lukasz, Sorry, it was a false alarm to report Struts2 failed to dispatch in case of duplicate names in the same namespace. I used System.out to monitor the flow and I didn't see what I expected to see and thought it silently failed. I now switch to log4j2 framework and can verify the flow from both console and log file. It is logical to return viewRegistration after the registration is successfully done. Thank you for the links! After I get myself comfortable with Struts2 and complete the migration to Struts2 from Struts1 for all our applications, I will definitely work on moving from Ant build to Maven. Thank you again! Regards,Joseph On Wednesday, June 11, 2025 at 01:20:51 AM EDT, Lukasz Lenart <lukaszlen...@apache.org> wrote: śr., 11 cze 2025 o 00:59 Joseph Huynh <joseph.hu...@yahoo.com.invalid> napisał(a): > > Hi Lukasz, > I just figured out that I had bundled struts.xml in wrong place in WEB-INF/ > instead of in WEB-INF/classes/. It is dispatching correctly now. My > struts.xml is mostly fine except for the duplicate result name in the same > namespace. I think Struts2 fails (silently) to dispatch in this case because > it won't do anything, no errors either.
Duplicated result names don't matter, result names are "action local". This means you can have an action named "viewRegistration" and at the same time another action could have a result named "viewRegistration". Basically the flow is as: http request -> action (by name) -> result (by name for this action) > I would love to learn to use Maven. I've tried several times in the past but > not successful. Just install Maven and use archetypes to generate your application, all modern IDEs support Maven out-of-box. Follow these steps https://struts.apache.org/maven-archetypes/ https://struts.apache.org/getting-started/ If unclear please let me know and I will update the docs. Cheers Lukasz --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org