我的所有代码都适用于IE10。但是使用firefox ver26.0和Chrome ver34,当我点击表格中的列表元素时,没有任何事情发生。
一个主要的jsp:
<sj:div href="%{#richiesteAjax}" preload="true" updateFreq="10000"/>
和jsp从中调用:
<%@ page contentType="text/html;" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<link href="${pageContext.request.contextPath}/css/stile1.css" rel="stylesheet" type="text/css" />
<%
request.setAttribute("decorator", "none");
response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0); //prevents caching at the proxy server
%>
<table class="LISTA_MENU" border="0" cellpadding="4" cellspacing="1"
align="center" style="width: 90%;">
<tr>
<th width="3%" class="LISTA_MENU">Id Richiesta</th>
<th width="12%" class="LISTA_MENU">Nome</th>
<th width="12%" class="LISTA_MENU">Cognome</th>
<th width="8%" class="LISTA_MENU">Data richiesta</th>
<th width="5%" class="LISTA_MENU">Stato richiesta</th>
</tr>
<s:iterator value="listaRichieste" status="stat">
<s:url action="autorizzazioneRichiesta.action" var="urlTag">
<s:param name="id" value="idRichiesta"></s:param>
</s:url>
<s:a href="%{urlTag}">
<tr style="cursor: hand; cursor: pointer;">
<td width="3%" class="RIGHE_TABELLA"><s:property
value="idRichiesta" /></td>
<td width="12%" class="RIGHE_TABELLA"><s:property
value="anagrafica.nome" /></td>
<td width="12%" class="RIGHE_TABELLA"><s:property
value="anagrafica.cognome" /></td>
<td width="8%" class="RIGHE_TABELLA"><s:date
name="dataInserimento" format="dd/MM/yyyy" /></td>
<td width="5%" class="RIGHE_TABELLA"><s:property
value="stato.descrizione" /></td>
</tr>
</s:a>
</s:iterator>
</table>
有什么不对?