Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EL contained in an EL Function

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Quick Question: Can a param value using EL be used within an EL Function. For eg:
${myFirstTag:establishConnection('Gmail','imap.gmail.com','993',${param["username"]},${param["password"]})}

From the error I get I feel the system isn't able to differentiate between the curly braces

description: The server encountered an internal error (javax.el.ELException: Failed to parse the expression [${myFirstTag:establishConnection('Gmail','imap.gmail.com','993',${param["username"]}]) that prevented it from fulfilling this



Thanks
Kind Regards
Krutika
 
Sheriff
Posts: 67403
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
${} encompass the entire EL expression; it's not some sort of fetch operator. It is never nested.
 
Krutika Ravi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear. Was able to get it right using:
${myFirstTag:establishConnection('Gmail','imap.gmail.com','993', param["username"], param["password"])}

Kind Regards
Kru
 
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic