bean:define and indexed property question
1 posts in topic
Flat View  Flat View

Posted By:   joey_corleon
Posted On:   Saturday, December 14, 2002 10:35 AM


I try to do the following with tag, but it does not work, I get an exception saying that the index (aka between '[' and ']') is not valid and the dump show me that it is empty (aka tableColHeaders[]) :-

<%= 2 %>]' />

Could anyone help?


Re: bean:define and indexed property question

Posted By:   shane_bailey  
Posted On:   Sunday, December 15, 2002 08:12 PM

Is it trying to tell you that there is nothing there and you are getting the equivalent of an ArrayIndexOutOfBoundsException
because there is no tableColHeaders[2] (or for that matter there is not even a tableColHeaders[0] because the array wasn't
newed. Was tableColHeaders declared by:

tableColHeaders = {"Type1", "Type2"} or

tableColHeaders = new String[2];



Or, at least the original object that tableColHeaders

references was created that way before being set in the

form bean.

Maybe, need more info to help.
About | Sitemap | Contact