• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic