i have a jsp that needs objects wich are generated in a servlet. i need to include this servlet in the jsp and need to be able to get objects from the servlet. how can this be done?
posted 15 years ago
You set the objects as attributes in the HttpServletRequest object and access them in the JSP. //servlet code request.setAttribute("objectName", new Object()); //jsp code Object obj = request.getAttribute("objectName");