Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create Variable Name Dynamically  RSS feed

 
Chris Cornelius
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!