You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by He...@HVBSystems.com on 2002/10/16 11:16:14 UTC

struts collection - layout with ArrayList returning from an bean

hi,

in my struts-webapplication i'm using an data-bean, which returns an
ArrayList
for every columns of an sql statement:

public List getColumn1( )

returns an List of String objects 



i'm trying to use the collection-tag to display the different columns of the
sql statement:

<jsp:useBean id="result" scope="request"
class="com.hvbsystems.sg.marvin.obj.ResultBean" />

<layout:collection name="result" styleClass="ARRAY" >

<layout:collectionItem title="Column1" property="column1" />

</layout:collection>


it doesn't work ;-(

the output looks like:

[JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB,
JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB, JAVAWEB]

it should looks like a table:

JAVAWEB
JAVAWEB
JAVAWEB
JAVAWEB
JAVAWEB
....


hope for help ;-)

many thank's


	Heiko Mesech



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>