Rick,

Consider using BeansWrapper? As I said, I've tested <#list> to work with Collection(s), not sure about ResultSet(s).

See freemarker manual on BeansWrapper.

Jonathon

Richard Fleming wrote:
Rodrigo,
Thanks for the reply.. but I can't use the delegator object. I have to use a jdbc connection so that I can query the database with a non standard operator (@@). The delegator doesn't support calling this operator. My life would be much easier if it did. So I create a database connection using the sqlprocessor and return a java.sql.resultset which I add to the context.
I'm reading through the Freemarker docs but it would help to see an example in 
ofbiz which utilizes a resultset.

<#list rs1 as parts>

</#list>

Where rs1 is a java.sql.resultset object.

Do you have any ideas?
Rick

Rick

Rodrigo Souza <[EMAIL PROTECTED]> wrote: User delegator to data layer.
Not use in .ftl files.

2007/8/6, Richard Fleming :
Hello all-

I've put together a bsh script that puts a java.sql.resultset into the context. 
How do I create a list tag in my freemarker file to display the resultset?

Thanks
Rick






------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 8/6/2007 4:53 PM

Reply via email to