wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tomcat 5 default body-content for a simple tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tomcat 5 default body-content for a simple tag" Watch "Tomcat 5 default body-content for a simple tag" New topic
Author

Tomcat 5 default body-content for a simple tag

Sami Sayeed
Ranch Hand

Joined: Oct 05, 2004
Posts: 39
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
Gaurav Sahni
Ranch Hand

Joined: Sep 03, 2003
Posts: 56
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.



To know recursion, you must first know recursion...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5 default body-content for a simple tag