I know that I can use the getParameter() to pass client-side objects, but I am wondering what to use to pass server-side objects like I do with the getParameter. I have seen the getAttribute but do I need to use the setAttribute on the first JSP page and then the getAttribute on the second page. Any help would be greatly appriciated.
Share
forward(jsp:foprwardorRequestDispatcher) from one page to another, then userequest.setAttribute(..)andrequest.getAttribute(), because you are within the same requestredirect(viaresponse.sendRedirect()), then userequest.getSession().setAttribute(..)andrequest.getSession().getAttribute()