Re: Too many session scoped form beans!

2003-03-31 Thread Dan Tran
gt; Sent: Monday, March 31, 2003 12:00 AM Subject: Re: Too many session scoped form beans! > That is just an example, I don't know what MAX value can be used for the datas you want the user to submit. > > Another solution would be to put form-bean into session scope and add a &quo

RES: Too many session scoped form beans!

2003-03-31 Thread Jorge Mascena
hedding some light on this topic. Jorge > -Mensagem original- > De: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Enviada em: Monday, March 31, 2003 5:01 AM > Para: Struts Users Mailing List > Assunto: Re: Too many session scoped form beans! > > > That is just an e

Re: Too many session scoped form beans!

2003-03-30 Thread Nicolas De Loof
gestion makes me nervous ... It is possible for a hacker > to > > > change the index so big that it can hog the CPU, which busy creating > empty > > > node, for each request. > > > > > > However, I cant come up with another solution > > > > >

Re: Too many session scoped form beans!

2003-03-30 Thread Dan Tran
t; node, for each request. > > > > However, I cant come up with another solution > > > > Any comments? anyone? > > > > -D > > - Original Message - > > From: "Nicolas De Loof" <[EMAIL PROTECTED]> > > To: "Struts Users Maili

Re: Too many session scoped form beans!

2003-03-30 Thread Nicolas De Loof
ginal Message - > From: "Nicolas De Loof" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, March 28, 2003 5:19 AM > Subject: Re: Too many session scoped form beans! > > > > Reading my own post I re

Re: Too many session scoped form beans!

2003-03-28 Thread Dan Tran
: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 5:19 AM Subject: Re: Too many session scoped form beans! > Reading my own post I realize this code will throw an IndexOutOfBoundsException > >

Re: Too many session scoped form beans!

2003-03-28 Thread Nicolas De Loof
Reading my own post I realize this code will throw an IndexOutOfBoundsException You need to put 'empty' datas on the List as needed : protected List item; public void setItem(int index, Object obj) { if (this.item == null) { this.item = new ArrayList(index); } for (int i = t

Re: Too many session scoped form beans!

2003-03-28 Thread Nicolas De Loof
I think you can use something like this in a request scoped form-bean : protected List item; public void setItem(int index, Object obj) { if (this.item == null) { this.item = new ArrayList(index); } else { this.item.ensureCapacity(index); } this.item.add(index, ob

Too many session scoped form beans!

2003-03-28 Thread Jorge Mascena
I'd like to know if it's possible to avoid using to many session scoped form beans. I have a bean that contains a collection and I use nested:iterate to display entry fields on my html:form. When the form is submitted, I get an error in BeanUtils.populate(), because the new bean (when the bean is