Hi
I am using struts2 in my project. I want to edit ,delete ,activate and
disable user.
Previously it is working using s:iterator wthout display:table
Please suggest me. What is problem. Currentrow of userID is not getting.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.io.*,java.util.*,java.sql.*,dao.*"%>
<%@taglib
<mailto:%25@taglib%20uri=%22http://displaytag.sf.net%22%20prefix=%22display%
22%25> uri="http://displaytag.sf.net" prefix="display"%>
<%@taglib
<mailto:%25@taglib%20uri=%22/WEB-INF/struts-logic.tld%22%20prefix=%22logic%2
2%25> uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib
<mailto:%25@taglib%20uri=%22/WEB-INF/struts-bean.tld%22%20prefix=%22bean%22%
25> uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
<head>
<title>All User</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="divMenuBar"
style="width: 100%; height: 3%; border: solid; border-width:
2px; float: left; background: #E5E5E5;">
<h3>
<font color="red" size="4pt"> All Users</font>
</h3>
</div>
<div id="divbody" style="width: 100%; height: 90%; float: right;">
<display:table id="data" name="userDetailsList"
requestURI="getAllUser.action" pagesize="20">
<display:column property="fullName" title="FullName"
sortable="true" />
<display:column property="userId" title="User ID"
sortable="true" />
<display:column property="agencyName" title="AgencyName"
sortable="true" />
<display:column property="userLevel" title="UserLevel"
sortable="true" />
<display:column property="userStatus" title="UserStatus"
sortable="true" />
<display:column property="createdOn" title="CreatedOn"
sortable="true" />
<s:url id="editURL" action="editUser">
<s:param name="name" value="%{userId}"></s:param>
</s:url>
<display:column href="EditUser.jsp">Edit</display:column>
<display:column media="html" title="Disable"
style="text-align:center">
<s:url id="disableURL" action="disableUser">
<s:param name="userId"
value="%{#attr.row.userId}"></s:param>
</s:url>
<s:a href="%{disableURL}">Disable</s:a>
</display:column>
<display:column media="html" title="Active"
style="text-align:center">
<s:url id="activeURL" action="activeUser">
<s:param name="name"
value="%{userId}"></s:param>
</s:url>
<s:a href="%{activeURL}">Active</s:a>
</display:column>
</display:table>
</div>
</body>
</html>
Thanks & Regards,
Shilpa Gandhi
Thanks & Regards,
Shilpa Gandhi
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel