If your running in a J2EE container, you could always shove the entries into
the environment.  Then you could look them up like:

try
{
    InitialContext ic = new InitialContext();
    Object myparm = ic.lookup("the/jndi/name/of/your/parameter");
}
catch (javax.naming.NamingException ex)
{
    //uh oh, error
}

----- Original Message -----
From: "Yuriy Zubarev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 2:09 PM
Subject: Configuration for Action


> Hello everybody,
>
> While working directly with servlets, in configuration
> file you can specify initial valus of parameters for a servlet
> in the following way:
>
> <init-param>
>   <param-name>
>     parameter
>   </param-name>
>   <param-value>
>     value
>   </param-value>
> </init-param>
>
> And you can easily get those values without resorting to
> parse information on your own.
>
> So I was wondering if it's possible to make such a
> thing with actions in struts-config.xml file.
> In another words I would like to have some custom
> parameters for some actions with handy means of
> extracting those parameters.
>
> Thank you for your time.
>
> Best of luck,
> Yuriy Zubarev
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

Reply via email to