public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
try
{
BufferedWriter pw = new BufferedWriter(new FileWriter("memberfile.txt", true));
pw.write("Please work!!");
pw.newLine();
System.out.println("Why isn't it working?");
pw.close();
}
catch(IOException ioe)
{
System.out.println("IOException thrown in writeMember() method");
}
}
Originally posted by Pranit Saha:
Do u have the jsdk2.0 or later installed.. first u have to install it and then write down the classpath in autoexec.bat file..
set classpath = %CLASSPATH%;c:\JSDK2.0\lib\jsdk.jar;
assuming that it's installed in c:\
Hope it will work..
Pranit
it gives me errors saying that javax.servlet not found and stuff ,