This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing an EL expression's value to an EL function  RSS feed

 
Wally Hartshorn
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an EL function, can the value I pass be the value of an EL expression?

In other words, can I do something like this?

<p>${someBean.someProperty} scrambled is ${fun:scramble(${someBean.someProperty})}.</p>

I'm getting a JSP syntax error that leads me to suspect that I can't pass the value of an EL expression to an EL function. If that's the case, is there a better way to do this?
[ November 18, 2005: Message edited by: Wally Hartshorn ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66204
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The ${} encloses the entire expression. You don't use it as some sort of 'fetch' operator.
 
Wally Hartshorn
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah! I was making things too complicated. Thanks very much!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66204
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Wally Hartshorn:
Ah! I was making things too complicated.


Isn't it great when things actually get simpler!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!