Hi
I am having two
jsp pages.
One.jsp and two.jsp.
I am using scriplet code in the One.jsp to set attribute like this :
request.setAttribute(“Name”,”Java”);
In the form action of one.jsp I am giving the value as “two.jsp”.
And after submitting , when I am trying to get the attribute using request.getAttribute(“Name”) in the second jsp , it is printing null.
I checked if the request objects are different , but when I printed the request object in one and two jsps they both gave same value ,i.e same request object is passed from one.jsp to two.jsp.
Then why am I not able to get the attribute in the second jsp page if the request object that is passed is same.
Anybody help me understanding , how and when the request object is created.