Hi All,
I'm trying to get a response by posting some data to a specified url using
an ajax call. but it returns whole page content as the response.
following is the ajax request.
jQuery.ajax({
type: "POST",
url:
"../event-sink-config/update_event_sink_configuration.jsp",
data: {action: "checkUrls", urlSet: receiverUrl},
success: function (data) {
alert(data);
}
});
update_event_sink_configuration.jsp code
String action = request.getParameter("action");
if(action.equals("checkUrls")){
out.write("Some value obtained by invoking relavent methods ");
}
Can someone help me figure out what is going wrong?
--
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev