Mitesh, Globals.MESSAGE_KEY was added in Struts 1.1. I think you should add the following code to one of your JSPs to see exactly what you are getting in your request and session
out.println("<p><b>All Attributes in request scope:</b>"); Enumeration paramNames = request.getAttributeNames(); while (paramNames.hasMoreElements()) { String name = (String) paramNames.nextElement(); Object values = request.getAttribute(name); out.println("<br> " + name + ":" + values); } out.println("<p><b>All Attributes in session scope:</b>"); paramNames = session.getAttributeNames(); while (paramNames.hasMoreElements()) { String name = (String) paramNames.nextElement(); Object values = session.getAttribute(name); out.println("<br> " + name + ":" + values); } Also, there should be no dependencies between Struts 1.1 and BC4J so you should be able to replace the Struts 1.1b2 jars you have with the released ones. ApplicationConfig is deprecated in Struts 1.1. You should look at using ModuleConfig. -Richard -----Original Message----- From: Mitesh Patel [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 9:55 AM To: 'Struts Users Mailing List' Subject: RE: MessageResources... Hi, We are using it oracle BC4J :( I will be raising this with our oracle consultant..... Anyway I have just managed to figure it out. God knows how..... ApplicationConfig AppConfig = (ApplicationConfig)request.getAttribute(Action.APPLICATION_KEY); Resource_Bundle = AppConfig.findMessageResourcesConfig(Action.MESSAGES_KEY).getParameter(); The question I have it will above not work with struts 1.2 ....etc (will it be depreciated?) Also I found that the MESSAGE_KEY does not exist in my request object.... Mitesh -----Original Message----- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 5:44 PM To: 'Struts Users Mailing List' Subject: RE: MessageResources... Mitesh, Why are you using a beta version when there is a released version available? You can access the PageContext object and use methods on it to get the objects that the Struts framework puts in your request object. Specifically, you want the Globals.MESSAGE_KEY attribute. This article describes everything you need to know: http://javaboutique.internet.com/tutorials/excep_struts/index-3.html Regards, Richard -----Original Message----- From: Mitesh Patel [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 6:22 AM To: '[EMAIL PROTECTED]' Subject: MessageResources... Hi, Using Struts 1.1b2 Is it possible to get the message-resource parameter in the struts-config file from a customTag? <message-resources parameter="com.misys.sts.ms.customiser.utils.ApplicationResources" /> (Any examples would be much appreciated) Thanks Mitesh Patel ---------------------------------------------------------------------------- ------------------------------------------------------------ This email message is intended for the named recipient only and may be privileged and/or confidential. If you are not the intended or named recipient or have received this email in error then you should not copy, forward or disclose it to any other person. The views and opinions expressed in this e-mail are those of the sender and may not represent the views and opinions of Misys Securities Trading Systems. If you have received this email in error you should destroy it or contact postmaster [EMAIL PROTECTED] so that we may take appropriate action. ---------------------------------------------------------------------------- ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _____________________________________________________________________ *********************************************************************** This message has been checked for all known viruses by the E-mail Virus Protection service, powered by MessageLabs. *********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]