Hi ,
I am trying to print an XML file using a
servlet but its not working. I am calling the servlet from an html file by giving the name as an input parameter and then submitting it.
I am trying to use it using a BufferedReader
BufferedReader br = new BufferedReader(new FileReader(filename));
String nextLine = "";
StringBuffer sb = new StringBuffer();
while ((nextLine = br.readLine()) != null) {
sb.append(nextLine);
sb.append("\n");
}
I want to display the response on the browser . Are there other APIs for servlets ? Please help, need poinetrs as I am new to this field.
Thanks,
Malika