Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scripting in tag bodies?

 
Ryan Day
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone verify this for me?

Q: Can a tag body contain scripting?

A:
If it refers to a tag file - yes
If it refers to a simple or classic tag handler - no
 
Ryan Day
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To answer my own question from the following FAQ:

SCWCDFAQ

Contain scripting?

Tag files - no
Classic tags - yes
Simple tags - no
 
Hendy Setyo Mulyo
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ryan Day:
To answer my own question from the following FAQ:

SCWCDFAQ

Contain scripting?

Tag files - no
Classic tags - yes
Simple tags - no


Hi Ryan,

Thanks for the explanation, but what is the difference between tagdependent and scriptless?
 
Ryan Day
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>>but what is the difference between tagdependent and scriptless?

Here's the explanation from the JSP 2.0 spec, page 3-21:


tagdependent
The body of the tag is interpreted by the tag
implementation itself, and is most likely
in a different "language", e.g embedded SQL
statements.

JSP
The body of the tag contains nested JSP
syntax.

empty
The body must be empty

scriptless
The body accepts only template text, EL
Expressions, and JSP action elements. No
scripting elements are allowed.
 
Hendy Setyo Mulyo
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ryan.
Strange, this scriptless body-content is not explained in Hanuman Desmukh's 2nd Edition SCWCD Exam Kit book. Perhaps the book need to be updated? So according to the spec, can we conclude as tagdependent is a subset of scriptless?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic