Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using EL variable as index into another EL object?  RSS feed

 
John Wallace
Greenhorn
Posts: 17
Java jQuery PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what I can do in a JSP using EL:



...but i would like to do it in this way (which is in error):



Where the code in the servlet reads:



and ComputerSystem.java contains:



My question is this: What is the correct way to do what I want to do using EL?

Thanks,
[ May 03, 2006: Message edited by: John Wallace ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EL questions do better in the JSP forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The ${} is not a "fetch" operator. It surrounds the entire EL expression.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!