I am new to servlets. I got the init
parameters in DD within the init()
method using getInitParameter
("name"). I tried a lot from within doGet()
method to access the init
parameters, but it always returns null
.
I tried with
getServletContext().getInitParametr("name")
and with
getServletConfig().getInitParametr("name")
but they all return null
. Can I get the init parameters in the doGet()
?