Javatpoint Logo

Error in JSP tutorial(JSP session implicit object)

By: sarkar*** On: Thu Oct 13 17:27:43 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
<html>
<body>
<%

String name=request.getParameter("uname");
out.print("Welcome "+name);

session.setAttribute("user",name);

<a href="second.jsp">second jsp page</a>

%>
</body>
</html>



In the above code, <a href=....>...</a>
should be placed outside the scriplet tag.
Up0Down