关于JS访问Servlet的路径问题
webRoot -- js -- validate.js
-- index.jsp
有个servlet地址为/validator
请问validate.js中怎么写validator的地址呢?
$.get("../validator?userName="+userName, null, function(response){ $('notify').html(response); });