File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 60062
    
  65

${} 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL contained in an EL Function
 
Similar Threads
unknown host exception error
Exception on load of a jsp with EL function call
Unable to securely request for a page
error in retrieving mail through a proxy.
Sample reading mails JavaMail