| Author |
Scripting in tag bodies?
|
Ryan Day
Ranch Hand
Joined: Apr 03, 2006
Posts: 87
|
|
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
|
SCJP, SCWCD
|
 |
Ryan Day
Ranch Hand
Joined: Apr 03, 2006
Posts: 87
|
|
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
Joined: Dec 01, 2004
Posts: 219
|
|
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?
|
Hendy Setyo Mulyo
SCJP 1.4 (95%), SCWCD 1.4 (94%)
|
 |
Ryan Day
Ranch Hand
Joined: Apr 03, 2006
Posts: 87
|
|
>>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
Joined: Dec 01, 2004
Posts: 219
|
|
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?
|
 |
 |
|
|
subject: Scripting in tag bodies?
|
|
|