You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jordan Thomas <jo...@ipa.fraunhofer.de> on 2002/12/09 12:52:35 UTC

EJB's and Collections of Objects

Hi,

I have a finder method associated with an EJB that returns a collection of
objects. I don't want to call the get Methods in my struts action class, in
my JSP's or in form classes as I would like to keep everything in the same
transaction. So what I was going to do was use a session bean which looped
around the the collection returned from the finder method, getting the data
objects and adding them to a new collection and then return out the
collection of data objects.

Is there a "standard" or better way to get my objects out into my struts
application?

thanks

Jordan


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


Re: EJB's and Collections of Objects

Posted by Michael Lee <ml...@hotmail.com>.
There's a pattern called value objects (or view objects) you may want to
check out.
Mike Lee

----- Original Message -----
From: "Gemes Tibor" <ge...@regens.hu>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, December 09, 2002 7:13 AM
Subject: Re: EJB's and Collections of Objects


2002. december 9. 12:52 dátummal Jordan Thomas ezt írtad:

> Is there a "standard" or better way to get my objects out into my struts
> application?

I think that it is rather straightforward and clean. Is it working for you?
Is
it fast enough? Does it suit your needs? If yes, there is no problem.  Btw
this is how I do as well.

Hth,

Tib

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

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


Re: EJB's and Collections of Objects

Posted by Gemes Tibor <ge...@regens.hu>.
2002. december 9. 12:52 dátummal Jordan Thomas ezt írtad:

> Is there a "standard" or better way to get my objects out into my struts
> application?

I think that it is rather straightforward and clean. Is it working for you? Is 
it fast enough? Does it suit your needs? If yes, there is no problem.  Btw 
this is how I do as well.

Hth,

Tib

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