• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tag within tagdependent body

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try to show the HTML source on your web browser ?
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic