Isn't there a tag to iterate over the lines of a reader or stream ?
Then
<util:tokenize var="csvRowAsAList" delim=","' "
>${lineIterator.next()}</util:tokenize>
Would do the job, wouldn't it ?
The only problem I see there is in the quotes handling for which I've never seen a real file specification... If there are escapes to be in there then a special taglib is probably required.
Le Jeudi, 30 janv 2003, � 15:26 Europe/Berlin, James Strachan a �crit :
<csv:forEach var="row" uri="foo.csv" colSeperator=",">
<sql:update>
insert into foo (a, b, c) values (?, ?, ?)
<sql:param value="${row[0]}"/>
<sql:param value="${row[1]}"/>
<sql:param value="${row[2]}"/>
</sql:update>
</csv:forEach>
Such an extract really shows how sexy jelly is!
Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
