This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I compile the following servlet in jdk1.3/bin directory its giving error 'Package javax.servelet does not exist' and same error for all three import commands.Where is the problem? The servelet is: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld2 extends HttpServlet { /* public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<body>"); out.println("<head>"); out.println("<title>Hello World!</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Hello World!</h1>"); out.println("</body>"); out.println("</html>"); }*/ }
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
posted
0
You have to download the servlet packages from sun's website. Bosun
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Sagar Surana
Greenhorn
Joined: Dec 23, 2000
Posts: 21
posted
0
u have to set the classpath in ur autoexec.bat set classpath=x:\<server_root>\lib\servlet.jar if ur using java web server where x = drive in which u have installed java web server <server_root> = directory in which web server is installed