Posted on 2001-06-07
I have 2 servlets:
one servlet sets an attribute like so:
Another servlet gets this attribute from the first servlet when it has been called via an URL
the code to get the attribute is:
String Password = (String)req.getAttribute("Password");
this is then output to the screen like so:
The question is: when I set the attribute in the first servlet I get an error saying that password is
not defined, how can I get around this as I have nothing that I want to set password to??
Also, I when it is output to screen I get null wrote??
I have been told to use HttpSession for this, has anyone any idea how to use HttpSession for this??