----- Original Message -----
From: "Jen Hsien Huang" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, July 13, 2000 6:50 PM
Subject: useage of context-param in web.xml
> what is "context-param" in web.xml?
> how to use it ? can anybody give me a code snip for example.
web.xml :
<web-app>
<display-name>SergiaWEB</display-name>
<context-param>
<param-name>SecurityAdapter</param-name>
<param-value>com.skalasoft.sergia.usermanagement.OrionSecurityAdapter</param-value>
</context-param>
Servlet code:
String sac = this.getServletConfig().getServletContext().getInitParameter(
"SecurityAdapter"
);
try {
SecurityAdapter SecAdapter = (SecurityAdapter)Class.forName(sac).newInstance();
return SecAdapter;
} catch (Exception ex) {
throw new SecurityAdapterException(ex);
}
Best regards,
Martin Mavrov