• 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

Tomcat 5 default body-content for a simple tag

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The JSP Spec states that the body-content tag must be scriptless as JSP is not a valid body-content for simple tags,
Tomcat behaves otherwise , if we dont provide the body-content for a tag, tomcat defaults to JSP which is not correct according to the Spec.
Please share your thoughts.

Sami
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yups, u are correct. i tested this in Tomcat5.0.28. Looks like another inconsistency of Tomcat.

But this creates another question. Is the <body-content> a required *tag* in the TLD ? HFS pg. 467 mentions this as *REQUIRED*. However, tomcat does take JSP as the default value, if it is not present.

Tried looking in the specs, but could not find anywhere about this.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic