| Author |
method getServletConfig() is undefined for the type TestInitParams
|
Omar Perez
Ranch Hand
Joined: Jul 08, 2011
Posts: 35
|
|
Greetings Community, God Bless
I'm currently on page 154 of the Book HeadFirst Servlets and JSP, using eclipse IDE and the servlet.api from Tomcat's latest release. However I'm getting the following error in eclipse "the method getServletConfig() is undefined for the type TestInitParams". I don't know what I'm not doing correctly, could anyone give me a hand explaining me where is my mistake?
Here is my code for the class
And here is the code ffor my DD (web.xml)
Thank you for your time
|
 |
Greg Charles
Bartender
Joined: Oct 01, 2001
Posts: 2535
|
|
|
You need to extend HttpServlet.
|
 |
Omar Perez
Ranch Hand
Joined: Jul 08, 2011
Posts: 35
|
|
Ohh I must be really sleepy, thank you man.
|
 |
 |
|
|
subject: method getServletConfig() is undefined for the type TestInitParams
|
|
|