axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NY...@aol.com
Subject How to use getServletConfig().getInitParameter()
Date Fri, 02 Jul 2004 12:22:53 GMT
I am having problems using the servlet.xml paramter specification, and I  was 
hoping somebody could help. I put the INIT-PARAM in the Tomcat version of  
servlet.xml. . . not in the Axis/Web-Inf version. Furthermore, I call it the  
following way:
 
import javax.servlet.http.HttpServlet;
 
public class AdminDirectBindingImpl extends  javax.servlet.http.HttpServlet
 
{
.
.
.
String ho =  getServletConfig().getInitParameter("accounts_db_dir");
System.err.println(ho);
file_base = new  File(getServletConfig().getInitParameter("accounts_db_dir") 
+ "admins\\" +  this_user);
 
}
 
This throws a nullPointerException. . .
 
Thanks in advance,
James

Mime
View raw message