DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7232>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7232 Unable to get message resources from ActionForm.validate due to deprecation Summary: Unable to get message resources from ActionForm.validate due to deprecation Product: Struts Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Controller AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Recently moved our app over to Struts 1.1 nightly build and moved to a multiple sub application setup. One problem though, inside an ActionForm.validate i am after the sub application's message resources. Previously I would have used getServlet().getResources(), but this is now deprecated. Thing is I can't see *any* obvious way of getting at the resources now. The docs for getResources() say use Action.getResources( request ), but inside a form validate I dont have the action. ActionServlet.getResources() will actually work correctly due to the code in RequestUtils.selectApplication placing the message resources under the Action.MESSAGES_KEY key. (In this way the docs are slightly misleading as the description for ActionServlet.getResources() talks about returning for the default sub application, which I took to mean prefix '\' rather than the sub application selected by the current request) To resolve this, either we need some way of getting the resources from the ActionForm (perhaps adding to or extending from ActionServletWrapper?) or undeprecating ActionServlet.getResources. This doesnt stop me working as the deprecated code still works but it just seems like an oversight :-) Cheers Ian -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>