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"));

Recommended Answers

All 3 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.