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 = tagdependent

 
Shruthi Karthick
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I specify body-content of simple tag as "tagdependent" , then everything inside body of tag is considered as template text.


For eg : use of ${param.userName} in the body will de dispalyed as ${param.userName} in the response.
What about scripting code? If I write "<%= alSize %>"(alSize is already declared in the JSP.) in the body of the Tag what will be the output?
I executed in Tomcat. For scripting code , nothing is printes in the response.

My Understanding :

${param.userName} in the body ---> is evaluated as template text.
<%= alSize %> in the body ---> is ignored

Is this correct?
 
Ashok Kumar Babu
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Understanding :

${param.userName} in the body ---> is evaluated as template text.
<%= alSize %> in the body ---> is ignored


Your statement is Correct.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic