I’m posting this question to the dev group, because I’m not that many are using the multiple bundle support of 1.1 yet. I’ve noticed that several of the methods for getting access to the Servlet and thus the ServletContext have been removed from classes like ApplicationConfig. This has made it a little harder to get messages from the message bundles.
The RequestUtils.selectApplication() method stores the default MessageResources into the request, but what approach should be used to get a message from the bundle from someplace other than a JSP? Should we recommend that developers get the default MessageResources from the request and use that, or are there better alternatives? What about when you’re using multiple resource bundles for an application, and you need a message from one of the non-default bundles? It appears that only the default MessageResources is being stored in the request. The addition of multiple bundles is a great new feature, but appears to be a little cumbersome to get access to the messages. Especially since a few of the strategic getServlet() methods have been removed. Here’s an example for context. Suppose that you want to extend the ExceptionHandler and get some other values from one of the bundles, in addition to the key that is configured with the exception mapping. How can this be done within the ExceptionHandler for example? Should there be a utility method in the RequestUtils for this? The ones that are there now are tied to the JSP due to the PageContext. If anyone can shed a little light on this, I would appreciate it. Chuck -- Posted via jApache.org -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>