Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to pass an EL Expression to EL function?

 
Siddarth Cherukumudi
Greenhorn
Posts: 29
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am preparing for the OCEJWCD exam, i am wondering whether it is possible to pass the EL Expression to the EL Function,
and evaluate as shown in the below code



Here in the above code in the request parameter of nums there is an ArrayList, which i intend to pass to the EL Function declared in the TLD, is it possible?

if there is no way, please suggest me an alternative approach to do the same without scriptlets

Thanks a lot in advance
Siddartha C.S
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2281
81
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Siddartha,

You cannot nest EL expressions. Please check the JSTL (e.g. <c:set>) libraries. There are a couple of examples in my notes (ScwcdLinks.

Regards,
Frits

 
Siddarth Cherukumudi
Greenhorn
Posts: 29
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frits,
Thanks a lot for the quick response, implemented as you have said, and it works like a charm

Regards,
Siddartha C.S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic