Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to use equals in el expression

843844Mar 31 2010 — edited Mar 31 2010
Hi!

I need to check if one string equals to the other one.
<h:outputText value="Failure" rendered="#{jobsImpl.result == 'Failure'}"></h:outputText>
i understand that using == for string is incorrect,
how can i use equals? i tried to use it like this:
<h:outputText value="Failure" rendered="#{jobsImpl.result.equals('Failure')}"></h:outputText>
but got an error.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2010
Added on Mar 31 2010
2 comments
444 views