This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes method getServletConfig() is undefined for the type TestInitParams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "method getServletConfig() is undefined for the type TestInitParams" Watch "method getServletConfig() is undefined for the type TestInitParams" New topic
Author

method getServletConfig() is undefined for the type TestInitParams

Omar Perez
Ranch Hand

Joined: Jul 08, 2011
Posts: 36
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
Sheriff

Joined: Oct 01, 2001
Posts: 2850
    
  11

You need to extend HttpServlet.
Omar Perez
Ranch Hand

Joined: Jul 08, 2011
Posts: 36
Greg Charles wrote:You need to extend HttpServlet.


Ohh I must be really sleepy, thank you man.
 
wood burning stoves
 
subject: method getServletConfig() is undefined for the type TestInitParams