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
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
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
> > >
> >
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
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
: "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
>
>
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
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
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
9 matches
Mail list logo