This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL expression evaluation  RSS feed

Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!
I'm invoking my servlet through link = http://localhost:8080/ . servlet adds an attribute "duck" of class Duck (JavaBean with "name" property) to request scope.
Then I forward a request to test.jsp page.
What I want to do is evaluate parameter to EL expression.
I know that I could do this by spliting evalparam parameter to two parts part1="duck" and part2="name" and then invoke ${requestScope[part1][part2]} but I'd like to do it through some kind of evaluation mechanism, e.g. ${evaluate(evalparam)} to acces property. And I'd like this mechanism be property chain independent.
Do you have any suggestions?
I'm considering creating tag which would evaluate this expression but is there any easier way?
Thanks a lot,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!