• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL contained in an EL Function

 
Krutika Ravi
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic