I get output Null for both Attributes that I set. What am I doing wrong? Ive even tried using hidden form fields in the JSP to send. But still the result is Null in my servlet for some reason. I can see their outputted values in the JSP for sure when I use <%=%> . Any help is welcome
When you set a request attribute in the JSP it is for that request. Request generally terminates at the JSP hence when you don't explixitly forward the request the request.setAttribute would only be available to that JSP page only and any included page.