Hi.
I've solved the problem. And the solution was... reading the documentation
with great attention!!!
In particular, from
http://struts.apache.org/2.0.11/docs/type-conversion.html, the paragraph
"Relationship to Parameter Names":
1 - Use JavaBeans! The framework can only create objects if the o
Hi David,
the OutOfMemoryError was solved using %{#stat.index} in the inputs, as
suggested by Laurie Harper.
You're right about the web server heap space, but the cause of the error was
obviously my wrong
ognl expression.
Does this stack trace begin with a java.lang.OutOfMemoryError as well?
Hi totojack-
I think you're right that the key property is useless now that you're using
the positional index to access your list elements.
Also, the type conversion page says that using the unique id indexed
approach won't allow for automatic creation of instances. The docs say the
following
To: user@struts.apache.org
Subject: Re: [S2] Beans list in Dynamic form and ParametersInterceptor
problem
The problem of songs list size is solved using #stat.index. But not the
parameters error.
The list size now is 1, but the element inside is null.
So, it can't create song beans and p
The problem of songs list size is solved using #stat.index. But not the
parameters error.
The list size now is 1, but the element inside is null.
So, it can't create song beans and put it into the list.
In the conversion props file the Element_songs is correctly set to the Song
bean class.
The Key
The problem looks to be that you're using the song ID as a list index:
If the value of SongId for the first item in the list is 658, on submit
Struts will try and put that song's data at index 658 in the list...!
What you probably want is:
Hi. I'm having probl
6 matches
Mail list logo