Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
<matrix>
<column name="Retention" >
<object name="ROSS" />
<object name="Test Software Component 2" />
<object name="Software Component 555" />
</column>
<column name="Temporary" >
<object name="ROSS"/>
<object name="Software Component 555" />
</column>
<column name="Permanent" >
<object name="Test Software Component 2" />
</column>
<matrix>

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}"/>

</x:forEach>
</x:forEach>



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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.