<% request.setAttribute("AttributeName","This is the Attribute value."); String strViewPage="SetAttributeMethod1.jsp"; RequestDispatcher dispatcher = request.getRequestDispatcher(strViewPage); if (dispatcher != null){ dispatcher.forward(request, response); } %>