解决方法:
<sitemesh> <mapping path="/*" decorator="/WEB-INF/views/template/template.jsp"/> <!---排除对json的装饰--> <mapping path="/json/*" exclue="true"/> </sitemesh>
$.post('/json/submit.json', {
name: username,
password: password
}, function (val) {
})