• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implicit objects in tag handlers

 
Ken Truitt
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jsp implicit objects are available to tag handlers through the
pageContext object (or (PageContext)getJspContext() for simple
tags). In the book, the only use of these context objects is
1)pageContext.getOut() and 2)pageContext.setAttribute(). What
about all the other implicit objects like request and response.
Also, is there some convention (ie the implicit object is 'out',
but the method called is 'getOut()'.

Thanks,

Ken
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look up the JavaDoc on PageContext. IF you understand how the dot notation works (which you need to know for the exam) you can figure out how to access the properties of the pageContext object

HINT - .out executes the getOut method
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic