File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes dynamic name for text field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "dynamic name for text field" Watch "dynamic name for text field" New topic

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63849

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.

[Asking smart questions] [About Bear] [Books by Bear]
meena latha
Ranch Hand

Joined: Jan 24, 2005
Posts: 219
thanks i corrected it.
I agree. Here's the link:
subject: dynamic name for text field
jQuery in Action, 3rd edition