• 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

No scripting inside tag body?

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"No scripting inside tag body", because the <body-content> in tld is default scriptless. Does this only apply to simple tags and tag files? or all tags? Because I certainly have used scripting inside tags before, e.g. those struts tags and JSTL tags.

Someone please clarify. Thanks.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the tld files available in the jar files used for struts and jstl.
If you found


that means your tag library uses JSP1.1. In JSP 1.1 the deafuls body-content type is "JSP".

In case your tags are JSP 2.0 compliant, the tld must specify the body-content as "JSP" in case it allows scriptlets.
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
scriptless is the default for <bod-content> of Simple tags and tag files whereas for classic tags <body-content> is mandatory and hence there is no default value for it.

This is for JSP 2.0
reply
    Bookmark Topic Watch Topic
  • New Topic