• 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

body-content = tagdependent

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic