• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Developing servlets using Eclipse 3.3.2

 
Mainak Moitra Moitra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to develop Servlets using Eclipse 3.3.2 but i can not recognise the httpservlet class itself. I have to add the servlet-api.jar file but do not know how to do it. I have the jar file in the Tomcat application server i am using. just help me out how to add the Servlet-api.jar in the eclipse.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just integrate Tomcat in Eclipse through servers view. Then associate it with your dynamic web project. This way Eclipse will take the API's automagically in the build path.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34202
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you know we have a forum specifically for IDE questions? I'll move this for you. Don't worry - the link will still work from the original forum.

[edited to fix typo]
 
Mainak Moitra Moitra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the help. But i solved the problem physically adding the library file into dynamic web project
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Associate it with your dynamic web project. This way Eclipse will take the API's automagically in the build path.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mainak Moitra Moitra wrote:Thanks a lot for the help. But i solved the problem physically adding the library file into dynamic web project

This is a workaround, not a solution. Too bad.

Just associate the appserver with your webproject. On create of the webproject, select the integrated appserver from the list. Or in the properties of an existing webproject, select the integrated appserver from the list. That's all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic