Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Create Variable Name Dynamically

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have an arraylist that I would like to be able to iterate through
and assign a name to the variable with the count value. The variable is then
displayed in a textbox. This is the code that I have, and it does not work. Does anyone have any suggestions?




Thanks in advance,

Chris Cornelius
 
Marshal
Posts: 67417
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a custom action as the attribute value of a custom action.

Despite forum instructions, you did not include the version of JSP and JSTL that you are using.
 
Chris Cornelius
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,

Sorry for the exclusion. I am working in a JSP 1.2 and JSTL 1.1 environment.

Chris
 
Bear Bibeault
Marshal
Posts: 67417
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You realize that those are not compatible? With JSP 1.2, you should be usng JSTL 1.0.
 
Chris Cornelius
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would be correct, JSTL 1.0 is what we are using. It helps to look at the manifest.

Chris
 
    Bookmark Topic Watch Topic
  • New Topic