I want to retrieve the uname and pass values in scriptlet.
I’ve tried something like this but obviously it’s not working and I’m getting null pointer exception.
IDfSession session2 = (IDfSession) request.getAttribute("pass"); String obj = (String)request.getAttribute("uname");
Thanks in advance.
In your case the uname and pass are passed as request parameters. So to access them in JSP use <%= request.getParameter(“uname”) %> <%= request.getParameter(“pass”) %>