Is there a possibility to get my displayed page's contents in "as-is" format into my request in my struts (1.2) action?
ServletInputStream is = a_request.getInputStream();;
InputStreamReader isr = new InputStreamReader ( is );
BufferedReader bufRead = new BufferedReader ( isr );
while ((line = bufRead.readLine()) != null) {
result += line;
}
bufRead.close();
The value of result is "", I also tried to use
BufferedReader reader = a_request.getReader();
instead of the getInputStream, but didn't help, basically I want the JSP body into a buffer, so I can save it as HTML and convert it to PDF.
Has anyone an idea about this?