A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
is it valid to use a standard class without its fully qualified name in JSP page??
Joined: Jan 07, 2006
Mar 13, 2006 18:54:00
in HFSJ final mock qno 12 in line no 2 uses a scripting expression
<%=Boolean.TRUE.toString()%> as we all know Boolean is a Wrapper class in java.lang.Boolean .isnt this
page supposed to use the fully qualified name of the class ( There is no import also) ??
Thanks in advace
Joined: Nov 24, 2005
Mar 13, 2006 19:12:00
You don't need to specify it because the default import list for JSP pages is :
java.lang.*, javax.servlet.*, javax.servlet.jsp.* and javax.servlet.http.*.
All roads lead to JavaRanch
It is sorta covered in the
JavaRanch Style Guide
subject: is it valid to use a standard class without its fully qualified name in JSP page??
Another way of initializing an object
Usebean: Fully qualified class name only?
Can't use Bean
Accessing static variables-Help Please!!
Calling Java classes from JSP page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014