tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin JaskuĊ‚a <jask...@expro.pl>
Subject RE: New line after include !!
Date Thu, 20 Dec 2001 19:29:09 GMT
Hi

sorry for the previous mail. My editor (vim), by default, add EOL at the end
of the line but it doesn't show it ! :-(.
But why response.reset() and response.resetBuffer() don't clear it ??

Marcin


> Hi everybody,
>
> I would like to make a script which produce binary data, but the script
> should include another file like:
> <%@ page
>     contentType="????/????"
> %><%@ include file="i.jsp"%>binary data
>
> If "i.jsp" is an empty file (length 0) it works.
> If in "i.jsp" file I put "<%%>" (only one line without CR) then I have
> "\r\n" put into  the output stream:
>
> // HTML // begin [file="/test/i.jsp";from=(0,4);to=(1,0)]
> out.write("\r\n");
>
> // end
>
> I have tried to use response.reset() and response.resetBuffer() like:
> <%@ page
>     contentType="????/????"
> %><%@ include file="i.jsp"%><%response.resetBuffer();%>binary data
>
> but the methods don't solve the problem !
>
> Any idea ?
>
> Thanks
> 	Marcin
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message