I don't really understand your case. But there're 2 common ways to send data from servlet to JSP:
Request attributes: you can use this if data is transferred along a same request.
request.setAttribute("username",obj);
request.getRequestDispatcher("url").forward(request,response);
In JSP:
<div>${username}</div>
Session attribute: use this to retain data during a session
Session session = request.getSession(true); //true: create session if not existed
session.setAttribute("username",obj);
response.sendRedirect("url"); //or use request dispatcher to forward the request
In JSP:
<div>${username}</div>