Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it valid to use a standard class without its fully qualified name in JSP page??

 
sriram kalakoti
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

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 JSp page supposed to use the fully qualified name of the class ( There is no import also) ??

Thanks in advace
Sriram
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.*.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic