File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "dynamic name for text field" Watch "dynamic name for text field" New topic
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: 60783
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
meena latha
Ranch Hand

Joined: Jan 24, 2005
Posts: 219
thanks i corrected it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: dynamic name for text field
 
Similar Threads
Error in jsp:forward in WAS
values for select tag from the database
problem with logic:iterate
Inclue file in lucene search
Help needed with DOJO and JSP