<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" /><meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta name="keywords" content="百联保">
<meta name="description" content="">
<title>百联保—我的账户</title>

</head>
<body>
<div style="width: 100px;float: left;padding-right: 20px;border: 1px #000 solid;">
<a onclick="a('test1');">test1</a>
<a onclick="a('test2');">test2</a>
</div>
<div id="test1" style="overflow-y:auto; overflow-x:auto;width: 500px; height:300px; float: left;padding-right: 20px;border: 1px #000 solid;">
	
</div>
<div id="test2" style="overflow-y:auto; overflow-x:auto;width: 500px; height:300px; float: left;border: 1px #000 solid;"></div>
<script src="<c:url value='/resources/script/jquery-1.8.3.min.js' />" type="text/javascript"></script>

<script type="text/javascript">
var baseUrl = '${pageContext.request.contextPath }';
function a(vals){
	$.ajax({
		type: 'POST',
		url: baseUrl + "/test/test1",
		dataType:"html",
		cache: false,
		success: function(data){
			$("#"+vals).html(data);
		}
	}); 
}
</script>
</html>