Results 1 to 1 of 1
- 02-12-2008, 04:39 PM #1
Member
- Join Date
- Feb 2008
- Posts
- 1
- Rep Power
- 0
JSTL -- Comparing two strings for equality
I am coding in JSTL and trying to compare strings for equality. I get a false output even though the strings are equal. I tried printing out the length of the string to check whether any of the two has whitespaces but somehow the length of both the string is equal still when I compare the two strings i get false.
<c:out value="${currRowName} : ${currColNodeName} : ${currRowName == currColNodeName}"/>
Any help with be appreciated.
Thanks
Similar Threads
-
Problem using jstl and displaytags
By NikhilSrivastava in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-18-2008, 11:01 AM -
Iterating through result set in JSTL
By Java Tip in forum Java TipReplies: 0Last Post: 01-15-2008, 03:13 PM -
Iterating through result set in JSTL
By Java Tip in forum Java TipReplies: 0Last Post: 01-14-2008, 09:31 AM -
Comparing Strings
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 09:44 AM -
JSTL error
By Eric in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 06-11-2007, 09:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks