• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Developing servlets using Eclipse 3.3.2

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic