This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL xml tags  RSS feed

 
Kiran Nanjuti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a random number in a <c:set> variable. Now i want to use it in a <xut> to output a specific node information by using position() to compare it with the number in the variable i already have. But it doesn't work.

I am trying to do this way
<xut select="$doc//topics/topic[position()=$randomNum] />
or
<x:forEach var="ran" select="$doc//topics>
<x:if select="$ran[position()= $randomNum>
<xut select="$ran/title"/>
</x:if>
</x:forEach>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"kiran",
you have already been warned twice about the Naming Policy. Please read it carefully and change your name accordingly (you need both first and last names to be set). Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!