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.
One doubt here:
I have verified the scenario on Websphere(WAS) 6.1 and Tomcat 5.5.
Both of them are able to default the body-content(if absent in TLD) like this
WAS done like this:
"JSP" for custom tags, "scriptless" for simple tags.
Tomcat done like this:
"JSP" for both custom and simple tags.
So How we should treat this scenario( absence of body-content) in exams.
Take it grated that it works bec'ze container provider's are defaulting based on class mentioned. (or)
Select translation error.
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
There is no single default for JSP 2.0 tags.
for classic tags, JSP
for simple tags, scripless should be the defaults.
(no single default value as it was in 1.2)
rgrds,
Khushhal
Khushhal posted: Reality is that there is no default as such for JSP 2.0 tags, neither for simple nor for classic.
Default is only for <body-content> element in tld. And that is JSP.
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Originally posted by Michael Ku:
Perhaps it would be wise to follow the way the book handles the correct answer?
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
rgrds,
Khushhal
So How we should treat this scenario( absence of body-content) in exams.
[My Blog]
All roads lead to JavaRanch
Christophe Verre posted:
There is no default value for the body-content, that's all you need to remember. If you remember what's in this faq, then you should be ok.
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Please give me a convincing answer.
Shall we select compilation(translation) error if body-content is missing from the TLD.
Why I am able to run both custom, simple tag handlers with out having <body-content> declaration in TLDs on WAS 6.1.
Please understand what kind of puzzle we are in.
[My Blog]
All roads lead to JavaRanch
Default is only for <body-content> element in tld. And that is JSP.
rgrds,
Khushhal
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|