hi,
Is there a way in which I can stop the executing of a function in
servlet by settling some attribute in session using another servlet.
For eg:
In
jsp < %session.setAttribute('cancel',"") %> On submit button I am calling a servlet which has following code
servlet1 -->(
String str = session.getAttribute(cancel) ){ if (str.equals(somevalue) break;}
Now tht 'someValue' is set in session using servlet2 which is invoked on some button Click of jsp
servlet2 -->session.setAttribute('cancel',someValue)
Howver I am getting str as null always in servlet1 even after invoking servlet2.
Please note that I am using encodeURL to maintain the session.