wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes about the exam objective Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "about the exam objective" Watch "about the exam objective" New topic
Author

about the exam objective

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Hi All,
The exam objective 12.8 says..
Identify methods that return an outer tag handler from within an inner tag handler ..what are thses mathods??
also what is the return value of PageContext.getOut()?
what are the methods in the custome tag handler that accesses..
1. a given JSP page's implicit variable
2. The Jsp page's attributes??
thanks in advance..
Trupti
suzy mac
Greenhorn

Joined: Oct 24, 2002
Posts: 2
pass Java before the end of the year score 85% and up. if you need help send an email. we can help you pass in no time.


pass Java before the end of the year score 85% and up. if you need help send an email. we can help you pass in no time.
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
What is wrong with my questions??
thanks,
Trupti
AJAY RANA
Ranch Hand

Joined: May 30, 2002
Posts: 75
Dear Nigam ,
I think the answers are :
1.Identify methods that return an outer tag handler from within an inner tag handler
--TagSupport.findAncestorWithClass(Tag,class)
-- getParent()
2.the return value of PageContext.getOut()--JspWriter
what are the methods in the custome tag handler that accesses..
1. a given JSP page's implicit variable-- setPageContext(PageContext pc)
I couldn't understand what do u mean by Jsp page attribute .If that is about other implicit variables then u can use the methods of class PageContext and access them from Tag Handler class.U already have pageContext implicit variable
from setPageContext method.
But if u mean Custom Tag's attributes then we have other classes like TagExtraInfo and 2-3 others which can help u know more about Tag attributes.
Regards,
Ajay Rana
SCJP,SCWCD
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
thanks AJAY..
Trupti
Maha Annadurai
Ranch Hand

Joined: Oct 27, 2002
Posts: 87
There are several utility methods availabe in PageContext to get a jsp page's implicit vars like 'request' / 'response' /'session' etc.
Some examples ,
pageContext.getRequest();
pageContext.getResponse();
pageContext.getSession();
Regardng your other question, how to retrive page's attribures, there is again a util method for this.
pageContext.getAttribute("name",PageContext.PAGE_SCOPE);
regards,
Maha Anna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about the exam objective