trinkets (1) [Avatar] Offline
#1
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="$sessionScopesmiliemlData/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!