Answers were Sorted based on User's Feedback
Answer / mohan
we have to set the variable in session object.like
and then we can get this variable where we want in this
|Is This Answer Correct ?||2 Yes||0 No|
Answer / anji
Store the variable in the session.
|Is This Answer Correct ?||1 Yes||1 No|
What’s the difference between forward() and sendredirect() methods?
What are the annotations used in servlet 3?
What is api in servlet?
Why is http protocol called as a stateless protocol?
HTTP tunneling means what?
Whether we can get deadlock situation in servlets?
Can servlet have a constructor ?
Is that servlet is pure java object or not?
How printwriter is different from servletoutputstream?
What is setattribute in servlet?
What is difference between get and post method?
what do you understand by url rewriting?