${pageContext.request.contextPath} // 应用名为“demo1” 则得到的是"/demo1"
<script>$(document).ready(function(){ $.get("${pageContext.request.contextPath}/jsondata",function(data){ alert(data); })});</script>