The source code of ForwardPersonToJsp.java : import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import beans.PersonBean; public class ForwardPersonToJsp extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { RequestDispatcher rd = request.getRequestDispatcher("ShowPersonFromRequest.jsp"); PersonBean pb = new PersonBean(); pb.setAge(55); pb.setAddress("Gannochy"); request.setAttribute("person", pb); rd.forward(request, response); } }