You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
Hi, i would like to ask in struts if we are using <display:table> to display our data, then how do we format our data? meaning how to align the data displayed to be align center instead of the default left?
I tried using CSS.
.alignment { text-align: center }
and i placed it here..
<display:column title="SomeColumn" style="alignment">
Is this the correct way to do it? I feel there's something wrong cos it don't seems to work.
where employeeList is a type of ArrayList which contains the formbean of EmployeeBean for each record. EmployeeBean is a class which contains property with only getters and setters.
eg.
class EmployeeBean
{
private String employeeName;
public String getEmployeeName()
{
return this.employeeName
}
public void setEmployeeName(String employeeName)
{
this.employeeName = employeeName
}
}
EmployeeBean bean = null;
List employeeList = new ArrayList();
while(rs.next())
{
bean = new EmployeeBean();
bean.setEmployeeName(rs.getString("employee_name") )
employeeList.add(bean);
}