RE: Retrieving the ModuleConfig object

2003-09-16 Thread Mainguy, Mike
I'm not sure what you mean by backwork, but it is accessible from the Action
Class by overridding the setServlet Method..

E.g.

ModuleConfig moduleConfig =
(ModuleConfig)
servlet.getServletContext().getAttribute(
Globals.MODULE_KEY);


-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 13, 2003 5:28 AM
To: Struts-user-list
Subject: Retrieving the ModuleConfig object


Hi, is it possible to retrieve a ModuleConfig object (with the module
configuration information) directly from within an Action without any
backwork?

Marco




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Retrieving the ModuleConfig object

2003-09-13 Thread Hue Holleran
I use:

mapping.getModuleConfig();

... but understand this only returns the ModuleConfig info for the current
module.

Hue.

> -Original Message-
> From: Marco Tedone [mailto:[EMAIL PROTECTED]
> Sent: 13 September 2003 10:28
> To: Struts-user-list
> Subject: Retrieving the ModuleConfig object
>
>
> Hi, is it possible to retrieve a ModuleConfig object (with the module
> configuration information) directly from within an Action without any
> backwork?
>
> Marco
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Retrieving the ModuleConfig object

2003-09-13 Thread Steve Raeburn
Look at the Javadoc for o.a.s.Globals.MODULE_KEY

With it you can get the current module from the request, or append the
module prefix (name) to look up any module in the ServletContext.

Steve

> -Original Message-
> From: Marco Tedone [mailto:[EMAIL PROTECTED]
> Sent: September 13, 2003 2:28 AM
> To: Struts-user-list
> Subject: Retrieving the ModuleConfig object
>
>
> Hi, is it possible to retrieve a ModuleConfig object (with
> the module
> configuration information) directly from within an Action
> without any
> backwork?
>
> Marco
>
>
>
>
> 
> -
> 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]