jsp new line becoming out.write("\n") in servlet
843836Apr 20 2004 — edited Apr 20 2004hi,
i have a problem with new line sign at the end of the line. i want to have <?xml version="1.0"?> at the beginning of the output from xslt, but when tomcat take the jsp site build sth like this:
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
<%@ taglib prefix="fn" uri="/WEB-INF/fn.tld"%>
<%@ taglib prefix="x" uri="/WEB-INF/x.tld" %>
<%@ pageisELIgnored="false"%>
<%response.setContentType("text/x-vxml");%>
<c:import url="loginVXML.xsl"var="xslt"/>
<c:import url="test.xml" var="xmldocument"/>
<x:transform xml="${xmldocument}" xslt="${xslt}"/>
it puts out.write("\n") in servler for every line of the code, so the line <?xml version="1.0"?> is not at the beginning of the document... do you know what to do to get new line in editor but not getting a new line sign in the servlet, cause in other way my documents have to look like this?:
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%><%@ taglib prefix="fn" uri="/WEB-INF/fn.tld"%><%@ taglib prefix="x" uri="/WEB-INF/x.tld" %><%@ pageisELIgnored=".....
thank you for help