• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Chapter 10 (Question 17 doubt)

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In chapter 10, for simple and class tag handler, please check question 17 at end of chapter.

How is possible that scripting element is not possible in a simple tab handler, this can be possible for tag files customer tags where only three options are there (EMPTY/SCRIPTLESS (default)/TAGDEPENDENT)

Please clarify my doubt.
 
Shantanu Puranik
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from JavaServer Pages 2.0 Specification,
JSP.7.1.5 Simple Tag Handlers on page 1-155
states,

Because JSP fragments do not support scriptlets, the <body-content> of a
SimpleTag cannot be �JSP�.


TLD is invalid if it specifies �JSP� as the value for
<body-content> for a tag whose handler implements the SimpleTag interface. JSP
containers are recommended to but not required to produce an error if �JSP� is
specified in this case.
[ November 29, 2007: Message edited by: shantanu puranik ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic