Come heroes

Category: Java EE
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>>

. . . . 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

2010-07-08 08:28:45
facie page source, or print under $ {display == 'N'} results to see
2010-07-08 08:41:49
servlet to check the database, I really have an idea
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?
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
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.