• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tagdependent

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For tag, <body-content>tagdependent</body-content> is defined.
so,
<pre:tag>
<%=(1+1) %>
</pre:tag>

will print body <%=(1+1) %> as it is.
Am I right?

Thanks
Imran
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right!

-Shivani
 
Anupama Ponnapalli
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this determined by the body-content value? I thought scripting (scripting elements, expressions and declarations)were not allowed in tag bodies anyway.
 
Jerret Halter
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
something like the following would not be allowed:


[ February 08, 2007: Message edited by: Jerret Halter ]
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what about <%=(1+1) %>, is this allowed for tagdependent?? <%=(1+1) %> is an Expression?? Can anyone clarify this!
 
Anupama Ponnapalli
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've done some reading on this. Tagdependent is interpreted to mean "take everything in the body and flush it to the output. Do not bother to evaluate it in any way."

Scripting (scriptlest <%%>, scripting expresssion <%= %> and declarations <%! %> ) are not evaluated for any possible value of body-content. The only difference with tagdependent is that there will no errors, the scripting just appears "as is" in the output.

When the body-content is tagdependent, even EL is not evaluated.

Regards,
Anu
[ February 09, 2007: Message edited by: Anupama Ponnapalli ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic