tengo este problema : kiero saber como sumar los valores de una columna de datos
Catalogo General de Cursos
Codigo Nombre Creditos Ciclo Tipo
i636 Nombre1 3.0 10 Tipo1
i419 Nombre2 4.0 10 Tipo2
i420 Nombre3 3.0 9 Tipo3
i316 Nombre4 3.0 9 Tipo4
i429 Nombre5 4.0 6 Tipo5
i765 Nombre6 4.0 6 Tipo6
H132 Nombre7 3.0 1 Tipo7
i565 Nombre8 4.0 6 Tipo8
i558 Nombre9 3.0 9 Tipo9
M117 Nombre10 4.0 3 Tipo0
i768 Nombre11 3.0 7 Tipo11
i554 Nombre12 3.0 7 Tipo12
0002 Nombre13 0.0 2 Tipo13
i430 Nombre14 4.0 8 Tipo14
Total de cursos: 14
Total de creditos: zz
el problema es como sumo la columna de creditos ...me dijeron que use bean:define ......aqui les dejo el codigo
<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld" %>
<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Listado general de cursos</title>
<style type="text/css">
</style>
</head>
<body>
<logic

resent name="vigil" >
<h2 class="Estilo1"><bean:message key="listado.men1" /></h2>
<table width="575" border="1" align="center">
<tr bgcolor="#000066">
<th scope="col"><span class="Estilo3"><bean:message key="listado.x1" /></span></th>
<th scope="col"><span class="Estilo3"><bean:message key="listado.x2" /></span></th>
<th scope="col"><span class="Estilo3"><bean:message key="listado.x3" /></span></th>
<th scope="col"><span class="Estilo3"><bean:message key="listado.x4" /></span></th>
<th scope="col"><span class="Estilo3"><bean:message key="listado.x5" /></span></th>
</tr>
<logic:iterate id="cursote" name="vigil">
<tr>
<td><bean:write name="cursote" property="codigo" /></td>
<td><bean:write name="cursote" property="nombre" /></td>
<td><bean:write name="cursote" property="creditos" /></td>
<td><bean:write name="cursote" property="ciclo" /></td>
<td><bean:write name="cursote" property="ntipo" /></td> <
</tr>
</logic:iterate>
</table>
<table width="580" border="0" align="center" bordercolor="#FFFFFF">
<tr>
<td width="388"></td>
<td width="182"><span class="Estilo4"><bean:message key="listado.t1" /> <bean:size id="num1" name="vigil"/> <bean:write name="num1"/> </span></td>
</tr>
<tr>
<td></td>
<td><span class="Estilo5"><bean:message key="listado.t2" /> zz</span></td>
</tr>
</table>
</p>
</logic

resent>
</body>
</html>