>I want to store the "selected state value" as a hidden variable and
>retrieve in other pages(maintaining a session).
for the first part of your problem see
http://mindprod.com/jgloss/htmlcheat.html#FORMS
For the second part you generate a form with a hidden field with a
default value which is the state you want the client to remember.
Other than that, you use a cookie.
see http://mindprod.com/jgloss/cookie.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.