in doView()
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
ResourceURL resURL = response.createResourceURL();
String p = "<object data=\"" + resURL.toString() + "\"" +
"type=\"application/pdf\" width=\"100%\" height=\"100%\"";
writer.print(p);
serveResource() is called then.
This works for IE and firefox but....
in IE without problems, in firefox I get a Stacktrace although I get the
document in the browser, but sometimes firefox also crashes
Does someone perhaps have a clue?
Thank you
Hubert
17:55:47,953 ERROR [[WorkflowPortlet]] Servlet.service() for servlet
WorkflowPortlet threw exception
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
--
View this message in context:
http://www.nabble.com/serveResource%28%29-question-tp25962607p26029560.html
Sent from the Pluto - Dev mailing list archive at Nabble.com.