From: Andras D. <da...@vi...> - 2004-04-05 09:33:04
|
Hi, I used to access message resource from the reset method of form beans in the following way: final Locale lcl = (Locale) request.getSession().getAttribute (Action.LOCALE_KEY); final MessageResources rs = servlet.getResources(); String label = rs.getMessage(lcl,key); Now, I switched to Struts 1.1 and I'd like to use separate modules in the next version of my web application. In Struts 1.1 some parts of the above code have been deprecated (Action.LOCALE_KEY, servlet.getResources()). Moreover, it doesn't work in an application that has modules. What is the correct way of accessing message resources in form beans? Thanks, Andras D. ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |