You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mahin Jeyachandran <ma...@hotmail.com> on 2003/10/24 10:41:51 UTC

Where and when will we use org.apache.struts.config.ModuleConfig appConfig

Good day,

I'm new to struts framework...

Where and when will we use the following code...?

org.apache.struts.config.ModuleConfig appConfig = (org.apache.struts.config.ModuleConfig) request.getAttribute(org.apache.struts.Globals.MODULE_KEY);

appConfig.getControllerConfig();

Can someone help me with a small example...

Thanks.
Regards,
Mahin
AddVal Technology Inc.





Re: Where and when will we use org.apache.struts.config.ModuleConfig appConfig

Posted by Manish Singla <Ma...@Sun.COM>.
Hi

org.apache.struts.config.ModuleConfig appConfig = 
(org.apache.struts.config.ModuleConfig) 
request.getAttribute(org.apache.struts.Globals.MODULE_KEY);

appConfig.getControllerConfig();

Above will give you an JavaBean Object which has stored info of 
RequestProcessor. You may store various attributes while declaring 
RequestProcessor. thus above will provide you all attributes

Manish Singla

Mahin Jeyachandran wrote:
> Good day,
> 
> I'm new to struts framework...
> 
> Where and when will we use the following code...?
> 
> org.apache.struts.config.ModuleConfig appConfig = (org.apache.struts.config.ModuleConfig) request.getAttribute(org.apache.struts.Globals.MODULE_KEY);
> 
> appConfig.getControllerConfig();
> 
> Can someone help me with a small example...
> 
> Thanks.
> Regards,
> Mahin
> AddVal Technology Inc.
> 
> 
> 
> 
> 


-- 
Thanks
Manish Singla
x73166


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org