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:
HiI want to pass a variable from one servlet to the other ,
how to do this?
sachin
