Hi, I'm working on upgrading the existing Struts 2 Tiles plugin to Tiles 3. I was able upgrade to latest Tiles 2 previously (that upgrade targeted Struts 2.3.x where Tiles 3 will be used in Struts 2.5.x).
I have noticed a lot of differences and what worked well in Tiles 2 it can even compile in Tiles 3. Anyway I was able to overcome the problems but I'm not sure if I chose the right solution. First: how should I load resources? Now I'm using this logic https://github.com/apache/struts/pull/73/files#diff-a4ef02a35b4a5838b0cc73fa5e6236f9R98 but I have noticed that the resources are loaded twice: first on startup (using #getResources()) then second time when I access an endpoint (but this time using #getResourse(ApplicationResource, Locale)) - why there are two different flows to load resources? Second: I need to gain access to ActionContext via HttpServletRequest so I use this logic to fetch it depending on type of Request https://github.com/apache/struts/pull/73/files#diff-3f37ea6ef2abf4a7a3e08299038543b9R83 - is that the right way to obtain the HttpServletRequest? Thanks for any hints! Cheers -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/