How do get a JSP to write a properly formatted CSV file?
Is there a way to make JSP stop adding new lines or spaces?
Can JSP pack spaces tightly between <% .. %> and <tag> ...</tag>?

Conversely can JSP be to told print a new line directly
( java.io.PrintStream.println() )?

Any help appreciated?


BTW: This is my JSP and it uses O'Reilly Taglib library to do the
iteration from DB SQL Query.

<%@ taglib uri="/orataglib" prefix="ora" %>
<%@ taglib uri="/emistaglib" prefix="emis" %>
<%@ page import="com.ora.jsp.util.*" %>
<%@ page import="com.ora.jsp.sql.*" %>
<%@ page language="java" contentType="application/vnd.ms-excel" %>
<jsp:useBean id="detailBean"
        class="com.db.gdd3.emis.report.ReportDetailBean"
        scope="request" />
<jsp:useBean id="sqlBean"
        class="com.db.gdd3.emis.sql.ExpressoSQLCommandBean"
        scope="request" />

    <ora:loop name="sqlBean" property="columnNameList"
        loopId="columnName" className="java.lang.String" >
        <%= columnName %>,
    </ora:loop>

<ora:loop name="rowsetData" loopId="row" className="Row" >
    <ora:loop name="row" property="columns"
        loopId="col" className="Column" >
        <jsp:getProperty name="col" property="string" />,
    </ora:loop>
</ora:loop>

--
Peter Pilgrim
G.O.A.T
                    "the Greatest Of All Time"



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to