Hong Zhang wrote:
> . Also, I am currently using JRun. I found that JRun does not implement
> 0.92 correctly that the implicit variable "out" is of type
> ServletOutputStream that does not implement java.io.PrintWriter, as
> specified in the 0.92 spec. Do you know which servlet/jsp runner
> available now implement this correctly?
With a small hack, you should be able to overcome this:
--- file.jsp ---
<html>
...
Somewhere before using 'out' insert the following scriptlet:
<% { java.io.PrintWriter out = response.getPrintWriter(); %>
Notice the open curly brace to start a new code block.
This allows you to shadow the out provided by JRun.
You should be able to use out here as a PrintWriter.
Don't forget to close your code block.
<% } %>
...
</html>
--- end file.jsp ---
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".