Hi I have started doing servlets. I am stuck somewhere. I have installed weblogic server and also configured it. I have also installed the J2EE SDK on my machine. But when I compile my servlet program, it says javax.serlvet.http.* and javax.serlvet.* packages are not found.
Please help me out how to start with doing servlets. Provide me the detailed steps to follow for compiling and running servlets. Here is the code:
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
public class ConfigServlet extends HttpServlet
{ ServletConfig con;
ServletContext ctx;
public void service(HttpServletRequest req, HttpServletResponse res) throws SevletException, IOException
{ ctx=getServletContext();
con=getServletConfig();
String image=con.getInitParameter("image");
String driver=con.getInitParameter("driver");
res.setCotentType("text/html")
PrintWriter out=res.getWriter();
out.println("<html><body background="+image+">");
out.println(driver)
out.println("</body></html>");
}
}