This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt on body-content

 
muthu kumaran
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have some doubt on the <body-content> for the <tag> element in DD.
What is the default value of <body-content> for Simple Tags.

I had a problem when working with Simple Tags in Tomcat.
If I don't specify <body-content> for a Simple Tag, the container(Tomcat in this case) takes JSP as the default value for <body-content>.

But since Simple Tags don't support JSP as their body-content , I get compilation error.

So IS <BODY-CONTENT> a mandatory tag for Simple Tags , but not for Classic ones ?
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From TLD 2.0:
body-content:
Specifies the format for the body of this tag.
The default in JSP 1.2 was "JSP" but because this
is an invalid setting for simple tag handlers, there
is no longer a default in JSP 2.0. A reasonable
default for simple tag handlers is "scriptless" if
the tag can have a body.

So you'd better set it to "scriptless" if you're not using the body.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic