I am trying to store the value in session, but it shows me a “string doesn’t close properly” error.
I am using this code for storing the value:
<% session.setAttribute("emailvalue",request.getParameter("<%=request.getQueryString() %>"));
String str=(String)session.getAttribute("emailvalue"); %>
Is it the right systax or not?
Instead of
store the value obtained from request.getQueryString() in another variable. The code you have has a jsp systemout tag <%=…%> inside another jsp java tag <%…%> which is not supported by the jsp compiler.
Instead make the code simpler to make it work like the following