tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin JaskuĊ‚a <>
Subject New line after include !!
Date Thu, 20 Dec 2001 19:04:56 GMT
Hi everybody,

I would like to make a script which produce binary data, but the script
should include another file like:
<%@ page
%><%@ 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)]

// end

I have tried to use response.reset() and response.resetBuffer() like:
<%@ page
%><%@ include file="i.jsp"%><%response.resetBuffer();%>binary data

but the methods don't solve the problem !

Any idea ?


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message