get value from session

I have below code. Issues are :

  1. There is no output for the first print “set n is :”
  2. From the output of the second println calling, the value of n is the session object rather than a string value( expecting a “0” value).