But is it like, if we don't write <%@page language ="java"%> we
wont have access to page implicit object?
I dont think it will be that way chandra. Even if you miss out the language attribute, the page implicit object should be accessible.
As per the spec of JSP 2.0, (Section 1.10.1 The page Directive) Only permissible value for the language is "java" even if the language attribute to the "page" directive is missed out, its considered to have "java" - means, its the default value. If any other non-java language attribute is used in the "page" directive, its a fatal error As per the spec of JSP 2.0, (Section 1.8.3 Implicit Objects),
Variable Name : pageVariable Type : java.lang.ObjectSemantic & Scope : The instance of this page's implementation class processing the current request page scope. When the scripting language is
java then
page is a synonym for
this in the body of the
page With the above points, even if you dont specify any language for the page directive, as "java" is considered by default,
you will definitely have access to the "page" implicit object. HtH.