I have a .json function whose retrieve some data and I want to show it with a <display:table>
, how can I do it
Alerta.js
function loadAlertaCitas(){
$.ajax({
type: "GET",
url: contextpath+"/alerta/cargaAlertas.json",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(data) {
listaAlertas = data;
}
});
}
Alerta.jsp
<display:table name="listaAlertas" id="alertas"
defaultorder="descending" requestURI="/other/listaAlertas" pagesize="12"
class="table table-striped table-condensed">
<display:column property="fechaalta" titleKey="label.fechaAlta"
sortable="true" class="ancho90" />
</display:table>