File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method getServletConfig() is undefined for the type TestInitParams

 
Omar Perez
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to extend HttpServlet.
 
Omar Perez
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic