File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes EL evaluation within bracket and without bracket Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "EL evaluation within bracket and without bracket" Watch "EL evaluation within bracket and without bracket" New topic
Author

EL evaluation within bracket and without bracket

sakthi vadivel
Ranch Hand

Joined: Dec 16, 2007
Posts: 41
hiiii folks

I have a doubt on EL evaluation technique. Please anybody explain me how el evaluates the expression when it's inside quotes "" and without quotes sorrounded.

for ex i saw a quiz

${"a"<"b"} returns true

${a<b} returns false. how?


thanks in advance>


sakthi SCJP, SCWCD OCA
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
Those aren't brackets, they're quotes.

Think about it: what does a string look like in EL? What does a variable reference look like?
 
 
subject: EL evaluation within bracket and without bracket
 
MyEclipse, The Clear Choice