FileInputStream fstream = new FileInputStream(uploadedFile);
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine = null;
out.println("<html>");
out.println("<head>");
out.println("<title>Processing get requests with data</title>");
out.println("</head>");
// body section of document
out.println("<body>");
while ((strLine = br.readLine()) != null) {
// Print the content on the console
out.println(strLine + "</br>");
}
out.println("</body>");
// end of html document
out.println("</html>");
out.close();
This is actually prints the content of file in a new page. I tried to give the same name of text area and the "String name = request.getParameter("textinputarea"); "..
Bookmarks