whatever data you want to send to the jsp wrap it up in a request,session or application scope object
like:
B b=new B();
request.setAttribute("a",b);
or
HttpSession session=request.getSession();
session.setAttribute("c",b);
or
ServletContext context=getServletContext();
context.setAttribute("d",b);
and then go to jsp page,ther you can use
Object getAttribute(
String)
method for retrieving those those objects which you set in you servlet.Use the same scope to getAttribute in which you have set them.
if you have used session.setAttribute("c",b);
use session.getAttribute("c");
and so on.