Click here to Skip to main content
15,305,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Appreciate if someone could assist me on this.... i have a servlet coded already (Its a http url). I would need to access the servlet in JSP to get the data using ajax.

can someone tel me how to obtain this?

url link below is given for sample.... $.ajax({ type: 'GET', data : { }, url: 'http://testurl/testconnection.jsp?action=getsearchresults',
success: function(data) { console.log(data);
});




I am new to Ajax, not sure how to pass my servlet in Ajax and retrieve the data in jsp.

Any experts assistance would be highly appreciated. Thanks

What I have tried:

$.ajax({ type: 'GET', data : { }, url: 'http://testurl/testconnection.jsp?action=getsearchresults',
success: function(data) { console.log(data);
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900