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

Custom Tags_ SimpleTagSupport

 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Tag handler class which extedns SimpleTagSupport has to implement 2 methods

i.e

doTag() .... The container calls doTag() when the JSP invokes the tag using the name in the TLD..

setUser.... When does the container exaclty call this method? Does the container calls it before calling doTag(). And if yes, then when?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Maan Shenoy:
The Tag handler class which extedns SimpleTagSupport has to implement 2 methods



Where you find this ?
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam talking about pg 469 HFSJ
 
sachin verma
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Maan Shenoy:
iam talking about pg 469 HFSJ


it is not there on the given page in HESJ 2nd edition

The Tag handler class which extedns SimpleTagSupport has to implement 2 methods

The SimpleTagSupport class is a concrete class it is not an abstract class.
we do not have to provide a doTag() method either. In that care the doTag() method from the SimpleTagSupport class will be called and it will do nothing.
2. No setUser() method is defined in SimpleTagSupport class.

correct me if I am wrong

regards
Sachin
 
Lakshmi Narayanan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All set attributes are called before doTag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic