Come heroes

Category: Java EE
 
yedp2001
2010-07-08 08:14:37

Sponsored Links
I query the database in a servlet, put bean object, and then put in the request, in the jsp is shown in this way


<c:forEach var="comment" items="${commentList}">
            <c:set var="display">${comment.state}</c:set>
        <tr <c:if test="${display=='N'}">style="color:red"</c:if>>
        。。。。。
        </tr> 
     </c:forEach> 


. . . . The output is not a problem, but I asked if the bean state is N, when the background color is red, but did not achieve the above code, kiss Which heroes know why, or give me Another idea would be grateful

Sponsored Links

wwhst
2010-07-08 08:28:45
facie page source, or print under $ {display == 'N'} results to see
aqqbj520
2010-07-08 08:41:49
servlet to check the database, I really have an idea
dmhy777
2010-07-08 08:57:23

Well I tested when the bean inside the state is N, when this is true, it is surprising is true, then the back of the style will run ah, Why did not enforce it?
fengshenyueying
2010-07-08 09:16:07

buddies do not follow the gab, you know you cow, I said servlet to check the database, it must be checked in serlvet write database code do? Do they want to get a cow, mix available points is not it, brother give you points
wyw656141
2010-07-08 09:25:27

grace have solved my own mistakes
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.