<!-ajax部分--><script>$(function(){
$.post("${pageContext.request.contextPath}/userServlet","action=showAll",function(data){//将json字符串数组转换成json数组var jsonObj =eval(data);for(user in jsonObj){for(key in jsonObj[user]){$('.show').append(jsonObj[user][key]+" ");}$('.show').append('<br>');}});})</script>