• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic name for text field

 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks i corrected it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic