Hi,
While I was trying to display a list of users in my
jsp page using the <display> tag provided by sourceforge (
http://sourceforge.net/project/showfiles.php?group_id=73068), it does not seem to work. Rather than displaying the page in a styled/formatted way, it displays the user list in very simple tabular format (the same output would be shown if I just used the html table tag).
It does not seem to use the class defined in the StyleSheet. What might be the reason? Any suggestion?
The code for my jsp page (userlist.jsp):
----------------------------------------
<%@ include file="/jsp/taglibs.jsp" %>
<html>
<head>
<title>The user list</title>
<link rel="stylesheet" href="../css/screen.css" type="text/css"/>
</head>
<h3>Showing UserList</h3>
<body>
<display:table id="a" name="users" class="simplex">
<display:column property="userid" title="User Id"/>
<display:column property="firstname" title="First Name" />
<display:column property="lastname" title="Last Name" />
<display:column property="email" title="Email" />
<display:column property="address" title="Address" />
<display:column property="groupname" title="Group Name" />
</display:table>
<html:link href="jsp/index.jsp"> Back to Main Page </html:link>
</body>
</html>
Portion of the code in my screen.css file:
------------------------------------------
table {
border: 1px solid #808000 ;
color: #800000;
padding: 0;
background-color: #FFFFBF
}
tr {
border: 1px solid #808000
}
td {
border: 1px solid #C0C0C0;
background-color: #FFFFBF
}
table.simplex thead tr {
background-color: #ffe0cc;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #555555;
}
table.simplex tr.odd {
background-color: #ffefe5;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
table.simplex tr.even {
background-color: #ffe0cc;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
table.simplex {
border-collapse: collapse;
border: 1px solid #FFB27F;
}
And the taglibs.jsp:
--------------------
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %>
<%@ taglib uri="/WEB-INF/displaytag-el-12.tld" prefix="display-el" %>
Any suggestion/advice from you would be higly appreciated.
With Thanks,
... Chisty