I don't understand why ServletRequest has a setAttribute method. Eg: if i have a jsp page containing 1 textbox and a submit button...
My objective is when i submit my name should be displayed in that textbox. Question here: whatever is displayed in that textbox is response from servlet right?
But in my assignment in servlet part: It was written request.setAttribute("name","abc");
at jsp side:
It was written: <input type="text" value = < %request.getAttribute("name")% > >
I know in javadocs they have setattribute inside request but why not under response?