The moose likes Beginning Java and the fly likes servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "servlets" Watch "servlets" New topic


Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
i wrote a basic servlet program using NetBeans IDE ,but it cant import servlet package.
What should i do .
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61084

Step 1.
Step 2.
[ September 18, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

My best guess is that you haven't added J2EE libraries to the classpath/build-path or whatever it is called in NetBeans. e.g. if you are using weblogic, those are found in weblogic.jar

PS: I guess this topic could be more appropriate for IDE forums.
It is sorta covered in the JavaRanch Style Guide.
subject: servlets