struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hernandez, David" <david.hernan...@lehman.com>
Subject RE: [S2] Beans list in Dynamic form and ParametersInterceptor problem
Date Tue, 22 Jan 2008 18:24:58 GMT

 Does this stack trace begin with a java.lang.OutOfMemoryError as well?
Have you tried increasing the heap space size for your Web Server?
Just a thought . . .

Regards,

David Hernandez

-----Original Message-----
From: totojack [mailto:totojack@tin.it] 
Sent: Tuesday, January 22, 2008 11:35 AM
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 put it into the list.
In the conversion props file the Element_songs is correctly set to the
Song bean class.
The KeyProperty is useless now using the iterator index? 

Here some logs:
DEBUG (interceptor.ParametersInterceptor:148) - Setting params
songs[1].endDate => [ 01.01.2099 ] [  ] songs[0].endDate => [ 01.01.2099
] songs[0].statusLoad => [ Publish ] songs[0].statusSellable => [ 1 ]
songs[1].songId => [ 9121591 ] songs[1].statusLoad => [ Publish ]
songs[1].statusSellable => [ 1 ] songs[0].songId => [ 9121587 ]
songs[0].startDate => [ 29.11.2007 ] songs[1].startDate => [ 29.11.2007
] ERROR (interceptor.ParametersInterceptor:204) - ParametersInterceptor
-
[setParameters]: Unexpected Exception caught setting 'songs[0].endDate'
on 'class it.telecomitalia.orchestrator.console.actions.ResubmitAction:
Error setting expression 'songs[0].endDate' with value
'[Ljava.lang.String;@16825b5'
(...)


Reading the manual at
http://struts.apache.org/2.0.11/docs/type-conversion.html it says:
"Notice the () notation! Do not use [] notation, which is for Maps
only!"
but changing the notation from
songs[%{#stat.index}].property
to
songs(%{#stat.index}).property
in the jsp, the form isn't populated.

--
View this message in context:
http://www.nabble.com/-S2--Beans-list-in-Dynamic-form-and-ParametersInte
rceptor-problem-tp15016850p15022328.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s)
named above.  If you are not the intended recipient of this message you are hereby notified
that any review, dissemination, distribution or copying of this message is strictly prohibited.
 This communication is for information purposes only and should not be regarded as an offer
to sell or as a solicitation of an offer to buy any financial product, an official confirmation
of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot
be guaranteed to be secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All information is subject
to change without notice.

--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication
(including any attachments) is not intended or written to be used and cannot be used for the
purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending
to another party any transaction or matter addressed herein.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message