How to use request.setAttribute() in JSP?
I need to pass a string that s too long from JSP to servlet. What i did was I made one hidden variable and assign that sting in that variable. In servlet i use request.getParameter(). It worked perfectly. Since my string have had some special chars I was not able to request.getParameter.So I used session.setArrribute().NOw it works so fine. But instead of that I need to use request.setAttribute(). When I do this , I am getting NullPointerException in my servelt. Hope you understand Where I stuck. CAn we use req.setAttribute() in Jsp? If So, How.?