• Post Reply Bookmark Topic Watch Topic
  • New Topic

import javax.servlet

 
venuvvp prasad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am facing problem in importing javax.servlet.*;.i am using java1.5.
while i am compiling code it says package javax.servlet is not found
 
vas reddy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to place servlet.jar in the path
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15715
73
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See Compiling Servlets in the JavaRanch FAQ.
 
sachin verma
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are using JDk only.

servlet is not the part of JDk.
use any of the above given solution or install appropriate version of j2sdk
 
Campbell Ritchie
Marshal
Posts: 52574
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Servlets are hardly beginner's Java, so I shall move you to the servlets forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!