Information Systems



How do I pass a Java Object to a .jsp page include?

How do I pass a Java Object to a .jsp page include?

<% request.setAttribute("oname", obj); %>

<jsp:include page="page.jsp">


In the target page:

<% Object object = request.getAttribute("oname"); %>