Hi All
Are implict objects available in jspInit() method or are they available in _jspService() method? For example, can the following code rewritten using implicit objects?
Good question, and you can't really get a clear answer from the specs, but you can deduct an answer from it.
JSP.11.2.1 API Contracts
void jspInit() Method is optionally defined in JSP page. Method is invoked when the JSP page is initialized. When method is called all the methods in servlet, including getServletConfig are available
No talk about implicit objects here, so we assume they are not available yet, going further into the specs:
Code Example JSP.11-2 The Java Class Generated From a JSP Page
Deduction from above: The implicit objects are only available in the _jspService() method.
Regards,
Frits