Dynamically including JSP page

I want to know that how can I dynamically include b.jsp page in a.jsp page without reloading the whole a.jsp page and this inclusion should occur when user click on button in a.jsp page? Can I use ajax or JQuery for that because I do not want whole page reloading?

The requirement is that a.jsp page is already there at client site. user now click the button on a.jsp page. this a.jsp page include b.jsp page on user click and the condition is that including page that is a.jsp, must not be reloaded entirely only part where b.jsp page includes, will be refreshed.

Re: Dynamically including JSP page

jQuery can make a call to it (Ajax), directing the response to a div.
That would be the usual route, if you are already using jQuery on the site.

Not really a Java question at this point.
Have a dig round the jQuery site, specifically this page on the get() method. It's the one I've used in these instances.

Here you writen about div. I think you mean <div> tag. I thnik you have suggested that showing server response data in divs. Instead of including jsps, we need to show and hide divs tag and displaying html control and data in these <div>s.

Re: Dynamically including JSP page

The get() method will put the response received from the server into the given element, usually a <div> or similar. There are examples at that link.
You don't want to include a JSP, at least with the definition of "include" used by JSPs. You want to direct the HTML returned by the JSP to a part of the page that already exists. That's what get() does.