I was reading a book about Servlet and the book used context-param and init-param, but he did not provide an example of how to use it. He just explain it in few words. Can some one give me example about how to use it and why I need it in my xml file?
NOTE: I am not talking about servlet-name and servlet-class. I am talking about the other two param.
<context-param>
<param-name>custEmail</param-name>
<param-value>isadfj@gmail.com</param-value>
</context-param>
<servlet>
<servlet-name>addEmailListServlet</servlet-name>
<servlet-class>email.addEmailListServlet</servlet-class>
<init-param>
<param-name>reletivePathFile</param-name>
<param-value>/WEB-INF/Email.txt</param-value>
</init-param>
</servlet>