Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method Used in Tag Handler Class To Access JSP's Attributes

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is from the SCWCD@Whiz trial: what is the method used in tag handler class to access JSP's attributes?
I think the answer is setAttribute_Name given that the attribute is required and provided in the JSP. But the correct answer provided is getAttribute_Name.
What is wrong with my understanding of the question or what is wrong with my understanding of accessing JSP's attributes?
 
Velmurugan Periasamy
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That may be because, setAttribute_Name is called by the container before invoking the tag handler's methods. Then the tag handler can call getAttribute_Name to find out what was specified at the JSP page level.
Does this reasoning make sense?
------------------
Velmurugan Periasamy
Sun Certified Java Programmer
Sybase Certified EAServer Developer
----------------------
Study notes for Sun Java Certification
http://www.geocities.com/velmurugan_p/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic