<%! int i; %> is a variable declaration that has object scope within the
servlet.
I suppose that this is true.
But what is difference from object scope vs. class scope? The term object scope is new to me. I guess object scope means instance, and class scope means class variables like statics. is that right?
===
<%= "Hello " + userName %>
the answer says that this is an example of
jsp Expression.
I suppose this is also an example of scriptlet since scriptlet includes expressions, is that right?
===
Servlets that implement the SingleThreadModel cannot share a
single HttpSession Object accross multiple servlets.
the answer says that this is false. But I think this is a true statement.
I did not understand this, SingleThreadModel guarantees one single
thread per Servlet, but there may be more than one thread as long as there are multiple servlets. If so, HttpSession is not protected against that.
Thanks.
Yan