• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

body-content possible values

 
vani venkat
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am referring this for mandatory fields of tld, http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags6.html#wp90362
body-content Element

You specify the type of body that is valid for a tag by using the body-content element. This element is used by the web container to validate that a tag invocation has the correct body syntax and is used by page-composition tools to assist the page author in providing a valid tag body. There are three possible values:

tagdependent: The body of the tag is interpreted by the tag implementation itself, and is most likely in a different language, for example, embedded SQL statements.
empty: The body must be empty.
scriptless: The body accepts only static text, EL expressions, and custom tags. No scripting elements are allowed.



why is body-content type of JSP not mentioned here ? it is also one of the possible values for classic tags.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking at the table of content for this tutorial, and it seems that they are only interested in simple tags and tag files.
Check here:
You can write simple tag handlers using the JSP language or using the Java language. A tag file is a source file containing a reusable fragment of JSP code that is translated into a simple tag handler by the web container. Tag files can be used to develop custom tags that are presentation-centric or that can take advantage of existing tag libraries, or by page authors who do not know Java. When the flexibility of the Java programming language is needed to define the tag, JSP technology provides a simple API for developing a tag handler in the Java programming language..

For the exam, you have to remember this.
 
vani venkat
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks christophe for pointing it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic