Bear Bibeault wrote:First things first. You are mixing scriptlets with JSTL. What's up with that? That's a recipe for disaster and just plain messy.
Why do you feel the need to resort to scriptlets? <c:set> will allow you to set and change scoped values. Also <c:forEach> can provide loop counts and indexes.
Thanks and Regards,<br />Y. Keerthi Sagar.
Keerthi Sagar wrote:Hi Steve,
While iterating if you got the required value in that column, add simply the following code.
<script>document.getElementById('<%=y%>').style.display = none;</script>
Hope this works.
Y. Keerthi Sagar.
Bear Bibeault wrote:Either write the style attribute on the <tr> element, or assign it to a CSS class name that colors it.
Bear Bibeault wrote:NO JS! Just do it on the server. You have all the data there at your fingertips.
Paul Clapham wrote:
Well, if it were me, I would do some more work in the part of your code (presumably it's a servlet) which puts information into the request context. Have it put the colour in a place where it's immediately accessible when you generate the TR tag.
Looks to me like you have put a list "twoqueList" in the request. And it looks like each entry in that list is simply a list of, um, let's just say somethings. I would change that so that each entry is a bean which contains two things: the colour of the row and the list of somethings.
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!https://www.kickstarter.com/projects/paulwheaton/low-tech