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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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: 56204
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: EL contained in an EL Function
 
Similar Threads
Exception on load of a jsp with EL function call
Sample reading mails JavaMail
error in retrieving mail through a proxy.
Unable to securely request for a page
unknown host exception error