I have some questions about ServletContext and ServletConfig:
On HFSJ, page 151: "By the time the servlet is running service methods, it's got a ServletConfig"
(Q1) Does this mean that ServletConfig can only be available in service() method (i.e. after init() method)? (Q2) How about the ServletContext? Is ServletContext also ONLY be available in service() method (i.e. after init() method)?
On HFSJ, page 308: "jspInit() called from the servlet's init() method, so by the time jspInit() runs there is a ServletConfig and ServletContext available to the servlet"
(Q3) As HFSJ mentioned, we can use ServletConfig and ServletContext in jspInit() method (i.e. can use them before _jspService() method, not like Servlet that only be avilable in service() method). Is this because the init() method of the generated servlet has already been executed and so ServletConfig and ServletContext are available in jspInit() method (since init() called jpsInit())?