Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing a web application project,In tha one table has to sortable by any column.PLease help do to the same
Posted
Comments
Sandeep Mewara 2-Feb-11 23:25pm    
Google search? CP search?

1 solution

A simple Google Search[^] gave me these and many more, here you go:
Link 1[^]
Link 2[^]
 
Share this answer
 
Comments
Chris Maunder 3-Feb-11 1:18am    
On behalf of original poster:

Hi sandeep,
I gone through the links,but that is not working in my project,In eclipse am using code like

table id="displayNameRole"
<th>Sl.no</th>
<thcolspan=5>Member Name</th>
<th>Role Name&</th>
<%int flag=0;
for(String logedInUser_RoleId:logedInUserRoleIdList){
if(flag==0){
if(logedInUser_RoleId.equalsIgnoreCase(&quot;Role2&quot;)||logedInUser_RoleId.equalsIgnoreCase(&quot;Role1&quot;)){
flag=1;%>
<th>Change Role </th>
<%}
}
}
%>
</tr>
<%
int i=1;
for(some code){
flag=1;
out.println("<tr>");
out.println("<td>"+ i +"</td>);
String roleName=(String)viewMemberRoleMap.get(viewMembersName.get(i-1));
String membersName=(String)viewMembersName.get(i-1);
out.println("<td colspan=5>"+retrieveUserName.getUserName(membersName,null)+"</td>");
out.println("<td>"+roleName+"</td>");
for(String logedInUser_RoleId:logedInUserRoleIdList){
if(flag==1){
if(logedInUser_RoleId.equalsIgnoreCase("Role2")&)||logedInUser_RoleId.equalsIgnoreCase("Role1"){
flag=0;
out.println("<td>") }
}
}
out.println("</tr>");
i++;
}
But it is not working..What to do?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900