Hi,

I want to access a "<context-param>" inside the  <context> tag of the main
server.xml file.

I can access  parameters inside the web.xml (stored in the web-inf)
directory, but that is stored inside the war/web project directory, how can
I access parameters declared in the main server.xml file.

Below is the code I use to iterate through the application parameters, so
what do I need to change for the top level context params ?

    java.util.Enumeration appIter = application.getInitParameterNames();
    while( appIter.hasMoreElements() )
    {
        String strName = (String)appIter.nextElement();
        out.println( "Application." + strName + "<BR>" );
    }

I have tried the config, session and page objects but they didn't work
either.

Thanks in advance 
Stuart.

PS, yes I have already searched the web & archives. :)


___________________________________________________
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___________________________________________________

Reply via email to