Mohnish Dukhande wrote:If your answer is entire page go for jsp else ajax
JSP is irrelevant here. Whether a page submission goes to a JSP (or servlet, or PHP, or...) or not is moot.
Also, think what type of data you will need as response i.e. you will get back either json or XML from ajax call and from jsp you can get different type of data e.g html data
Certainly if data (JSON et al) is being returned, Ajax is indicated. But Ajax is also often used to fetch HTML code snippets, so just because HTML is the response type is not a reason to eschew Ajax.