Top "Init-parameters" questions

Getting the init parameters in a servlet

I am new to servlets. I got the init parameters in DD within the init() method using getInitParameter("name"). I …

java servlets deployment-descriptor init-parameters
cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'

This is my web.xml xsd <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/…

servlets xsd web.xml init-parameters
Get filter init parameters in a servlet

I have a filter that looks like this: <filter> <filter-name>TestFilter</filter-name> <filter-class&…

java init-parameters
Difference b/w <context-param> and <init-param>

DD elements <context-param> and <init-param> both can be retrieved by the getInitParameter() method, in the servlet …

java servlets deployment-descriptor init-parameters
How to retrieve <servlet><init-param> value from web.xml in Servlet?

I need to retrieve init-param value from xml to Servlet i used following code <servlet> <servlet-name>…

servlets web.xml init-parameters