cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Accessing java.sql.ResultSet via jxpath
Date Wed, 08 Jan 2003 17:24:57 GMT


we are thinking how a multi-line result from an SQL-query can be passed
efficiently from the logic layer to the flow layer.
One possibility, that currently works, is to build a List of Java objects 
(one for each row) and access this List via jxpath in the view.

In the view we then have for example:

       <jpath:for-each select="users/list">
                <jpath:value-of select="userName"/>
                <jpath:value-of select="firstName"/>
                <jpath:value-of select="lastName"/>

Unfortunately it is not very efficient to build a new array of Objects, just
to pass the information from the ResultSet to the view layer.

As an alternative we currently try to extend jxpath to be able to handle
java.sql.ResultSet directly.

Is anybody else working on this already, or are other ways to solve the

Best regards,
Johannes Hofmann

+++ GMX - Mail, Messaging & more +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!

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

View raw message