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

tag within tagdependent body

 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I put some text in the body of a tag that is declared tagdependent, and the tag invokes the body, that text is output literally. But if I put another tag in the body, that other tag is not processed, nor the tag is output literally.

tag

The jspShows
Simple tag: outer
my:showThePosts posts="${applicationScope.comments}"

(as expected), but the jsp
shows
Simple tag: outer
I would expect to output
Simple tag: outer
<my:showThePosts posts="${applicationScope.comments}" />


Please share your deepest thoughts about this.
[ August 27, 2008: Message edited by: Jan Sterk ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try to show the HTML source on your web browser ?
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It will check whether showThePosts tag is vailable in the TLD.It is not there.So it didnt display anything.Because you have used <my:showThePosts> which is used to call the Classic/Simple Tag invocation.

Tagdependent is excludes the custom tag call.
[ August 27, 2008: Message edited by: deepa raj ]
 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christophe Verre:
Did you try to show the HTML source on your web browser ?


Right answer! The inner tag is indeed included in the html. Probably the <my:..> thing is seen as an malformed html tag, I guess.

Thanks Chris.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic