Action class defines getResources(HttpServletRequest) as follows: protected MessageResources getResources(HttpServletRequest request) { return ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); }
I don't see why this method is not static. Hopefully, this will be refactored. Anyway, I guess you can instanitate base Action class and call this method on it. Or, simply cut its content to your own code, reset() and validate() methods of form bean receive request as parameter. Michael. On 4/16/05, atta-ur rehman <[EMAIL PROTECTED]> wrote: > Hi all, > > Action class defines getResources(HttpServletRequest) method, thru > which I can get access to MessageResources. > > I don't see an equivalant method in ActionForm. Is it possible to get > access to resource files in ActionForm subclasses? If so, how would I > do it? > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]