私はSpringMVCを使用して小さなWebアプリを開発しています。変数を表示してから、フロントエンドからjstlとして表示します。私のメインページには
function getExecJob(execid){
alert(execid);
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("execDetailDiv").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","execJobDetail.action?execId="+execid,true);
xmlhttp.send();
}
execJobDetail.actionリターンページexecJobDetail.jsp、
<div id="status_code_div">
HTTP Status Code Summary <br/>
<table width="523" id="http_status_code_table">
<tr>
<th width="268" >HTTP Status Code</th>
<th width="129" ># of Urls</th>
<th width="110" >%</th>
</tr>
<c:forEach var="entry" items="${reportMap}">
<tr>
<td scope="col" class="row_type"> ${entry.key}</td>
<td scope="col" class="row_value">${entry.value}</td>
<td scope="col" class="row_value">${(entry.value)*1.0/toal}</td>
</tr>
</c:forEach>
</table>
</div>
</c:if>
しかし、それは常にjstlのものを空白のままにしてページを返します。誰かが私にいくつかの提案をしてくれませんか!!!! ありがとうございました !!!