aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL contained in an EL Function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "EL contained in an EL Function" Watch "EL contained in an EL Function" New topic
Author

EL contained in an EL Function

Krutika Ravi
Greenhorn

Joined: Feb 11, 2010
Posts: 23
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

Joined: Jan 10, 2002
Posts: 61433
    
  67

${} encompass the entire EL expression; it's not some sort of fetch operator. It is never nested.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Krutika Ravi
Greenhorn

Joined: Feb 11, 2010
Posts: 23
Thanks Bear. Was able to get it right using:
${myFirstTag:establishConnection('Gmail','imap.gmail.com','993', param["username"], param["password"])}

Kind Regards
Kru
 
Consider Paul's rocket mass heater.
 
subject: EL contained in an EL Function