on 08-15-2007 9:31 AM
Hello,
I am using writeHTML(java.io.Writer writer) to dump something to a JSP page.
However this call seems to close the "out" descriptor, which I think is programming with side effects and as such not correct. Has anyone experienced the same problem?
kind regards,
Frans.
Hi Frans,
I believe the writeHTML method is only intended for debugging purposes.
However, you could use a StringWriter to buffer the results like this:
StringWriter sw = new StringWriter();
jco.writeHTML(sw);
out.println(sw.toString());
Hope this helps.
Best regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.