How to show jsp in response to an ajax call to a servlet?

Don't use JSP for this. It's good for HTML stuff only. Just let the servlet return JSON or XML and process it in JS side.

Here's a kickoff example assuming that you want to search for products and that the Product class has properties name description and price which you'd like to show in a table.

This is sample for json to return json data: http://code.google.com/p/json-simple/wiki/JSPAndAJAXExamples Also there is some jsp tab lib like:http://json-taglib.sourceforge.net.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions