This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am little bit shocked with the way jsp aram is working. We know that jsp aram is used as subattribute in <jsp:include> , <jsp:forward> and <jsp lugin> My code is , including.jsp <html> <body> <jsp:include page="included.jsp" flush="true"> <jsp aram name="ename" value="Swati" /> <jsp aram name="deptno" value="20" /> </jsp:include> </body> </html> included.jsp is my included file and reads 2 parameters pass by the pervious file. included.jsp <% out.println(request.getParameter("ename")); out.println(request.getParameter("deptno")); %>
Output should be "Swati" and "20", but i am getting "null" and "null" value for both the parameter. I am really confused . Will anybody explain this to me. Thanx Swati (SCJP2)