서블릿에 요청이 실패하면 데이터를 내 서블릿에 전달하는 jQuery UI 상자가 있습니다.JQUERY Success return
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
response.getWriter().write("<valid>false</valid>");
어떻게 성공 기능에서 액세스 할 수 있습니까? 여기
(? 또는 잘못) 내 jQuery 코드입니다 :
$.ajax({
//this is the servlet file that processes the data and send mail
url: "Register",
//GET method is used
type: "POST",
//pass the data
data: data,
//Do not cache the page
cache: false,
//success
success: function (response) {
//$("#message").append(response);
}
여기에 좀 더 자세한 내용을 제공해 주시겠습니까? 나는이'success' 콜백이 AJAX 요청의 일부라고 생각 하는가 ?? –
저는 등록 코드를 작성했습니다. 등록 상자를 만들었지 만, 현재 작동하지만, 사용자가 성공했는지 여부를 알리는 경고를 추가하는 방법은 확실하지 않습니다. – Lunar
서블릿에 요청한 jQuery는 무엇이 있습니까? – justkt