开发者

How to display list of user with account status in spring

开发者 https://www.devze.com 2023-03-08 08:07 出处:网络
I wantto display list of user with account status as a locked or u开发者_高级运维nlocked. also admin able to search user from list of users. how to implement this functionality using spring, java ? or

I want to display list of user with account status as a locked or u开发者_高级运维nlocked. also admin able to search user from list of users. how to implement this functionality using spring, java ? or any jquery component provide this functionality?


From what i can tell, inside your JSPs you should use JSTL

you can use that to iterate through all the users in your list. Also you can add extra logic, like if the user is active highlight it green (or something like that). example:

<table> <c:foreach var="user" item="${users}"> <tr><td>${user.firstName}</td></tr> </c:foreach>

This is a quick example (sorry not formatted) that will take all the users in the list and display the first name in a table. Its really quite simple to use. The only thing you need to know is at the begining you need to is : and I use the prefix C because it is the standard for "Core". <%@ taglib uri = "http://java.sun.com/jstl/core" prefix = "c"%> Hoep this helps,

0

精彩评论

暂无评论...
验证码 换一张
取 消