Hi all I need to to read parameter value from web.xml
I tried following way but it displays only null value ..

<init-parm> 
<parm-name>email</parm-name>
<parm-value>syz@gmail.com</parm-value>	
</init-parm>
//servlet code 
pw.println(getServletConfig().getInitParameter("email"));

any one help me pls...

thanks stephen84s,

ya , from that tutorial only am learning but still i cant read parameter from XML file ..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.