Bear Bibeault wrote:No, that's how you are trying to accomplish it. The question is higher-level: why? What are these values? Why do they need to be shared?
Actually my teacher have given me this as my assignment which i need to submit by 28 of this month. i am sending you the actual question which he have given to me please help me.
here is the question
Display the sharing of context among different servlets of same web application. First servlet should accept one input and store it as operand1 in session attribute. The second servlet should accept another input and store as operand2. Each of these servlet should check if other attribute is set, and if so, compute the multiplication of two numbers and display the result.