You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Néstor Boscán <ne...@tcs.com.ve> on 2006/01/18 02:27:40 UTC
Array of a java bean and Dynamic Form Beans
Hi
In the projects I'm working on we use a lot of Dynamic Form Beans with
Arrays of Java Beans. I read that the only way to make this work is to
declare the form bean with session scope. The problem is that I need all
form beans to have their scope set to request to minimize session
propagation between servers. Is there any way to get around this
limitation?.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Unit test struts application
Posted by "Richard Jason R. Raquepo" <rr...@primeorion.com>.
hi guys,
how do you test your struts application? can you test up to the action
level maybe using mocks? can you share your experience and maybe tools
you use.
i found this while surfing:
http://www.jnetdirect.com/products.php?op=conv
has anyone has any experience using it?
thanks & more power,
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Array of a java bean and Dynamic Form Beans
Posted by Rick Reumann <st...@reumann.net>.
Néstor Boscán wrote:
> The problem is that I have to minimize the use of object in session scope to
> minimize session replication. Is there any way to do this in request scope?
Right.. as I said you can use Request scope just fine. You just have to
make sure in the reset method to either use a LazyList to wrap your
Collections or somehow figure out what size to make to your collection.
(I like LazyLists).
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Array of a java bean and Dynamic Form Beans
Posted by Néstor Boscán <ne...@tcs.com.ve>.
Hi Rick
Thanks for the quick answer.
The problem is that I have to minimize the use of object in session scope to
minimize session replication. Is there any way to do this in request scope?
Regards,
Néstor Boscán
-----Mensaje original-----
De: Rick Reumann [mailto:struttin@reumann.net]
Enviado el: Tuesday, January 17, 2006 10:16 PM
Para: Struts Users Mailing List
Asunto: Re: Array of a java bean and Dynamic Form Beans
Néstor Boscán wrote:
> In the projects I'm working on we use a lot of Dynamic Form Beans with
> Arrays of Java Beans. I read that the only way to make this work is to
> declare the form bean with session scope.
You can get this to work without using Session scope. You just need to use
your reset method in your ActionForm to wrap your collections in a LazyList.
There are examples here:
http://wiki.apache.org/struts/StrutsCatalogLazyList
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Array of a java bean and Dynamic Form Beans
Posted by Rick Reumann <st...@reumann.net>.
Néstor Boscán wrote:
> In the projects I'm working on we use a lot of Dynamic Form Beans with
> Arrays of Java Beans. I read that the only way to make this work is to
> declare the form bean with session scope.
You can get this to work without using Session scope. You just need to
use your reset method in your ActionForm to wrap your collections in a
LazyList. There are examples here:
http://wiki.apache.org/struts/StrutsCatalogLazyList
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org