| Author |
dynamic name for text field
|
meena latha
Ranch Hand
Joined: Jan 24, 2005
Posts: 219
|
|
hi all. I am using JSTL tag for my application. Here is my problem. I have a list,whose values are set using VO's. I my action class i am setting this list in the Actionform and using that in my JSP. In my jsp the value is displayed in a text box. Once the value is corrected the corrected value need to be saved in the List. This can be used when there is only one origin. Problem arrises when we have multiple origin. i gave the name attribute of the text like this. name= "${errorList[${iteration.count-1}].originPointDescription}" Hoping that this will get the origin in the List. But this is throwing java.lang.IllegalArgumentException: Invalid indexed property '${errorList[${iteration' Not sure what to do. Many help will be really helpful. Thanks
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
Your notation is incorrect: The ${ } delimiters surrond the entire EL expression. It is not a "fetch" operator as you seem to be trying to use it here.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
meena latha
Ranch Hand
Joined: Jan 24, 2005
Posts: 219
|
|
thanks i corrected it.
|
 |
 |
|
|
subject: dynamic name for text field
|
|
|