Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 26th, 2008, 10:05 AM
Registered User
Join Date: Feb 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSTL String comparison probem! Plzzz help !!

I am having issues with string comparison after retrieving data from XML in JSTL. I have this XML
<column name="Retention" >
<object name="ROSS" />
<object name="Test Software Component 2" />
<object name="Software Component 555" />
<column name="Temporary" >
<object name="ROSS"/>
<object name="Software Component 555" />
<column name="Permanent" >
<object name="Test Software Component 2" />

The code that compares the data is:

<x:forEach var="colnodesName" select="$sessionScope:xmlData/matrix/column">
    <x:forEach var="colnodesNameObj" select="$colnodesName/object">
        <x:set var="objname" select="$colnodesNameObj/@name"/>
<tr><c:out value="${currName} : ${objname} : ${currName == objname}"/>


The output I get is:

[name="Test Software"] : [name="Test Software"] : false

I even tried <c:out value="${currName.value} : ${objname.value} : ${currName.value == $objname.value}"/>
But this does not give me any output infact it gives me a blank page.

Can anyone help me please
Thanks in advance
Any help will really be appreciated!

Similar Threads
Thread Thread Starter Forum Replies Last Post
String comparison arnabghosh Classic ASP Professional 1 June 29th, 2006 06:01 AM
Fuzzy string comparison (2) kobus XSLT 2 October 11th, 2004 07:28 AM
fuzzy string comparison kobus XSLT 0 September 22nd, 2004 05:47 AM
Please Help - Tricky String Comparison ank2go SQL Server 2000 1 February 6th, 2004 09:57 PM
String Comparison rylemer Pro VB 6 9 July 29th, 2003 06:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.