• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TagSupport handler and fragment attribute

 
Sharmila Punde
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Can someone please give example of 'how to use fragment attribute in classic tag handlers( which extends TagSupport)'. Fragment attribute type is JspFragment. How to invoke this attribute from within classic tag handlers. I could use it with simple tag, tag file but do not know how to use it with classic tag.

Thanks
Regards
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2531
112
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sharmila,

I don't know exactly what you want to do, but the JspFragment is only used in SimpleTags (and Tag files because the container will make a SimpleTag out of it). In Classis tags you only have the BodyContent object that contains the body of the tag.

Regards,
Frits
 
Sharmila Punde
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits,
Wanted to know if fragment attribute can be used along with classic tag, if yes then how. You cleared my doubt. Thanks again
Regards
 
Rafael Leandro Santos
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It is an example of use BodyContent to read content of tag in JSP.
do not know if that's what you asked.
I have helped

Att,

 
Sharmila Punde
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rafael
Good to see code how to access body content using BodyContent object. Storing this code in
my notes.
Thanks for trying to help! Question was related to fragment attribute and got answered.
Thanks again.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic