tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11859] - JSP generation of binary files not possible
Date Tue, 20 Aug 2002 14:56:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11859

JSP generation of binary files not possible

Larry.Isaacs@sas.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From Larry.Isaacs@sas.com  2002-08-20 14:56 -------
Sorry, but it is a bug in Tomcat 3.2 and 3.3 that writing binary data is
possible.  I'm not sure about the various versions of Tomcat4.

The JSP spec requires that the JspWriter be associated with a PrintWriter in
the ServletResponse, thus precluding use of an OutputStream to output binary.
It is a bug in Tomcat3 that this isn't enforced.  To output binary, your JSP
may need to forward to a servlet to perform the output.

The JSP spec also requires that all template text be output verbatim.  Thus,
there is a '\n' of template text between the following two scriptlets if
formatted as follows:

<% script1 %>
<% script2 %>

I assume something like this is the cause for the '\n' characters.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message