While in the source servlet store the variable as an object in a session with

session.putValue("variablename", variableObject);

and in the target servlet retrieve it with:

session = request.getSession(false);
variableObject = (VariableClass) session.getValue("variablename");

If the variable is a primitive you will have to create a corresponding variableObject before doing the above.

Good luck.

At 01:43 PM 12/27/99 +0530, you wrote:
Hi I want to pass a variable from one servlet to the other ,
how to do this?
 
sachin
 

Reply via email to