• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing CSS value based on c:out

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I need to change the <tr name name based on cut as follows:


[code]<tr name="rw<cut value="${record1}"/>" >[code]

There are 2 for:each loop,
<c:forEach items="${BatchListBean}" var="batch" varStatus="record1">
---
---
<c:forEach items="${supplierInvoices}" var="mainpage" varStatus="record2">
"<tr name="rw<cut value="${record1}"/>" >" [without outer double quotes..here i gave for proper display]
---
</c:forEach>
</c:forEach>

but its not workin ..whats the correct way to append teh cut value dynamically?


Thanks Amarshi
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please place your code inside the CODE tags. It is difficult to read this code
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And be sure to disable smilies in your posts. As it is, this post is unreadable.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not clear on what you're trying to do. I see that you have created a varStatus in each of your <c:forEach> elements, but you appear to be using it as a simple value. For example, you have: where record1 is the name of your status variable. What you you expecting to get?

Using the status variable, you can get things like ${record1.count} and ${record1.index}, etc.

Can you please make the other changes to your post as suggested, then try to explain better what you're trying to get? A sample of the expected output would be a good thing to include.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!