• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Custom Tags_ SimpleTagSupport

 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
iam talking about pg 469 HFSJ
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All set attributes are called before doTag
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic