Hi Hubert, Thanks for the suggestion. I tried the second option
2) Override the default ActionMapping class and set its default "scope" value to request. Extended the ActionMapping class and in the CustomActionMapping constructor called super.scope="request". It works , however is there any known issues in using this method OR Anything else also needs to done Thanks Sajid -----Original Message----- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 8:31 PM To: Struts Users Mailing List Subject: Re: "Configuration is frozen" exception thrown for actionMapping.setScope On 11/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi All, > > In our application, we have decided to force all the actions to use > the request scope. So instead of adding scope ="request" in the > <action> element in struts-config.xml for each action, we extended the > RequestProcessor class as below > <snip/> > > 1.Is there any workaround to avoid the "Configuration is frozen" > exception This happens when you try to change objects configured through struts-config after the application has started up. > 2.Is there any better way to enforce that all the actions to use some > specific scope (Ex: request) You can: 1) Implement a plugin that'll loop through the action mappings configured and change their "scope" value. 2) Override the default ActionMapping class and set its default "scope" value to request. I'd probably try option (2). You can take a look at the struts-examples.war sample application [included in the struts download] for an example of how this is done. > > Awaiting your replies and Thanks in Advance > > Sajid Hubert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]