I am glad to meet you guys there. I am Chinese, and my English is not very good.
I have 3 questions which i cant understand.
1.Which two are concerning the objects available to developers creating tag files?
A.The session object must be declared explicity.
B.The request and response objects are available implicity.
C.The output stream is available through the implicit outStream object.
D.The
servlet context is available through the implicit servletContext object.
E.The JspContext for the tag file is available through the implicit jspContext
object.
(Answer:B,E)
2.Given the session is a valid HttpSession object:
int max = session.getAttribute(MyReallyLongName);
Which is true?
A.The value returned needs to be cast to an int.
B.THe getAttribute method takes two parameters.
C.Primitive CANNOT be stored in the HttpSession.
D.The HttpSession attribute name must NOT exceed 8 characters.
(Answer:C)(but i try it on my computer,i can store primitive in HttpSession,
Maybe because that my JDK's version is 5, not 1.4?)
3.Which three interfaces need to be declared in the DD?
A.HttpSessionListener
B.HttpSessionBindingListener
C.HttpSessionTimeoutListener
D.HttpSessionAttributeListener
E.HttpSessionActivationListener
F.HttpSessionPassivatedListener
(Answer:B,D,E)(Why A is not inclued? i think every listener must be declared in the DD. )
Thank you very much.