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

Body-Content element in TagLib

 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends...
i want to know if i placed tagdependent in Body-Content element of the Tag Library descriptor.what it will do???
Thanks and Regards
Kumaran.S
 
Krishna Varma Adluru
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kumaran,
If the value is "tagdependent", then the body is passed as it is to the tag handler. So, if you use "tagdependent" then you can use the tag like this:
<mytaglib:firesql>select * from USERS where username like '<%>'</mytaglib:firesql>
So, the advantage is you can use special characters like "<%"
in the body. Otherwise, JSP container will get confused.
If you have any questions, let me know

Originally posted by Kumaran Sowrirajan:
Hi friends...
i want to know if i placed tagdependent in Body-Content element of the Tag Library descriptor.what it will do???
Thanks and Regards
Kumaran.S

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web-jsptaglibrary_1_1.dtd says that this element is "primarily intended for use by page composition tools."
Regards,
Dan
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, whether the body is included, and whether it is processed or not are determined by the value returned by doStartTag() in the taghandler.

 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friends.
regards
Kumaran.S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic