• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the spec saying ?

 
morph wang
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
quote form spec: <b>
[12.7: Identify the method in the custom tag handler that accesses:
A given JSP page's implicit variable
The JSP page's attributes] </b>
I'm just not clear what is it saying? any one can explain it to me?
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jsp page has several impleciate objects. These are objects available to your page with you having to create it.
page - ServletContext
out - JspWriter
session - ServletSession
etc.
From the Tag class and all subclasses, you have an Object pageContext. It has methods to allow you to access any of the implecitate objects on your JSP page. eg
ServletSession session = pageContext.getSession();
------------------
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
morph wang
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carl, I got it. Very appreciated !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic