This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso 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 The Software Craftsman this week in the Agile 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: 2867
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method getServletConfig() is undefined for the type TestInitParams