hello
I am trying to run guestbook with the help of servlets.Servlet get the parameters of textfield and write those parameters in html file with the help of streams.I can run this servlet successfully when i give a path like"c:/guestbook.html".But same servlet does not work with tomcat when i give path as" to the location of file.It also does not give any error. Just entries are not there. part of the servlet is like this:
try {
BufferedReader in4 =new BufferedReader(new StringReader(s2));
PrintWriter out1 =new PrintWriter(new BufferedWriter(new FileWriter(" true)));
Can anybody suggest me the possible cause.Any help will be highly appreciated.
Smriti
I am trying to run guestbook with the help of servlets.Servlet get the parameters of textfield and write those parameters in html file with the help of streams.I can run this servlet successfully when i give a path like"c:/guestbook.html".But same servlet does not work with tomcat when i give path as" to the location of file.It also does not give any error. Just entries are not there. part of the servlet is like this:
try {
BufferedReader in4 =new BufferedReader(new StringReader(s2));
PrintWriter out1 =new PrintWriter(new BufferedWriter(new FileWriter(" true)));
Can anybody suggest me the possible cause.Any help will be highly appreciated.
Smriti