Hi there ,
When i try to get the initilization parameter in the servlet file , i am getting as null , i have defined in the deployment descriptor like this and i am using such code
ServletContext context = getServletContext();
String strParamValue = context.getInitParameter("FileName"); and in web.xml file it is like
<servlet>
<servlet-name>
<init-param>
<param-name>FileName</para-name>
<param-vlue>MyFile</param-value>
</init-param>
</servlet>
so cud u tell me why i am getting null values i shd get "MyFile " in the strParamValue i suppose ,and i tried by using this also
String strParamValue = getInitParameter("MyFile");
the same thing is happening here also so cud what cud the problem and how to get all those values.
thanks in advance
..gaurav
When i try to get the initilization parameter in the servlet file , i am getting as null , i have defined in the deployment descriptor like this and i am using such code
ServletContext context = getServletContext();
String strParamValue = context.getInitParameter("FileName"); and in web.xml file it is like
<servlet>
<servlet-name>
<init-param>
<param-name>FileName</para-name>
<param-vlue>MyFile</param-value>
</init-param>
</servlet>
so cud u tell me why i am getting null values i shd get "MyFile " in the strParamValue i suppose ,and i tried by using this also
String strParamValue = getInitParameter("MyFile");
the same thing is happening here also so cud what cud the problem and how to get all those values.
thanks in advance
..gaurav