tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kralidis,Tom [Burlington]" <>
Subject join and arrays
Date Thu, 26 May 2005 13:37:24 GMT


I have a JSP which parses an XML document and inserts records into a DB.

For multiple XML elements, I do the following:

<sql:transaction dataSource="${ds_devgeodb}">
  insert into service_endpoints (keywords) values
var="kw"><x:out select="text()"/>,</x:forEach>')

Which works okay, except that the values in the DB end up as:


..whereas I would prefer


(i.e. without the trailing comma)

I checked the fn:join() function, which looks like it would do the
trick, but how does one set an array in JSTL?

Any advice would be appreciated.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message