border

Miembros:
Mensajes:
Temas:
Online:

Ultimo Miembro:

 
 


Retroceder   VB-MUNDO - Programacion Visual > Programacion - Lenguajes > JAVA (General)
Registrarse FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos

Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 02-07-2007, 03:07:25
Avatar de hades1982
Junior Member
Site Admin
 
Registrado: jun 2007
Posts: 2
hades1982 Valoración +2
Predeterminado ayuda con la suma de valores de una columna en jsp

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>
<logicresent 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>
</logicresent>
</body>
</html>
Responder Con Cita
Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado


Temas Similares
Tema Autor Foro Respuestas Último Mensaje
comparar valores de una columna y luego elegir el mayor num Black_devil Visual Basic 6.00 1 04-02-2008 20:51:10
¿Como asignar valores a una columna de un datagrid? mike_s Visual Basic.NET 2003 & 2005 0 18-11-2006 07:29:31
Extraer Valores de una fila y pasarlos a una columna CarlitosFer Visual Basic 6.00 2 13-06-2006 20:40:06
Agregar un pie al DataGridView para sumar valores de columna Guillermo C# .NET 0 06-03-2006 19:02:58
update columna completa con valores diferentes losgallos Lenguaje SQL 3 17-09-2004 00:00:00


La franja horaria es GMT. Ahora son las 23:36:30.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
A vBSkinworks Design

Alojado en el servicio Premium de Masquewebs | Diseño mejorado por MasqueWebs

right