aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Q? on body-content tagdependent /body-content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Q? on body-content tagdependent /body-content" Watch "Q? on body-content tagdependent /body-content" New topic
Author

Q? on body-content tagdependent /body-content

rahul dighe
Ranch Hand

Joined: Apr 17, 2001
Posts: 44
i have a question
would it make any sense to have a <body-content>tagdependent</body-content> and ur tag handler class extending TagSupport . since there is now way to access the BodyContent of the tag .. and assuming u include EVAL_BODY_INCLUDE in doAfterBody, will the body show up as is(assuming its not a valid jsp code> ?. or is it a error to specify "tagdependent" as a value for a class which extendes TagSupport or implements InterationTag ? could some please clarify ?


<BR>Rahul Dighe
Dani Mazzuca
Ranch Hand

Joined: May 21, 2003
Posts: 70
Hi,
I read the specification completely and I don't remember that there exists something telling that "tagdependent" and extending TagSupport (or impementing IterationTag) will cause some error. I dont't think containers will check fot that.
Anyway, you are right, in general, if you are using "tagdependent" you are probably going to manipulate the content of the body. But you can only do that if you implements the BodyTag interface.
BTW, let me correct something, EVAL_BODY_INCLUDE is not an option for doAfterBody(), it is only for doStartTag().
Dani
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Q? on body-content tagdependent /body-content
 
Similar Threads
Classic Tags > tagdependent
passing dynamic vars to nested custom tag fails
not getting the EL
tagdependent value for the body-content element
JspFragment