Hello everybody, does anybody know how you where access the pageContext? I'm working on a project using Struts 1.1 and am searching for a way to access the pageContext from within a Action or a ActionForm. However all the stuff you get there are the ActionMapping, the Form, the Request and the Response. I'm stuck on finding the pageContext which i need to use the RequestUtils.message method. Thanks in advance! Regards, Robert Ps. Hope this doesn't belong in the Struts/Framework forum. If it does, my apologies.
I needed to get a message from the default message bundle within a Action.execute() and a ActionForm.validate(); I stored the localized format string to use in the bundle. However as i'm quite lazy (sometimes a good thing for a programmer ;-)) i wanted to use thre RequestUtils.message() method to get the message for me. However that method needs the pageContext. Now i just have to use the Globals.MESSAGES_KEY to get the bundle out of my ServletContext... Regards, Robert