aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes True Statement about Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "True Statement about Tag" Watch "True Statement about Tag" New topic
Author

True Statement about Tag

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
The following is an entry in JSTL's Core tags descriptor.
Select the true statements about this tag.

<tag>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>






Answers
1) This is an example of an empty tag.


2) The attribute "var" cannot use a JSP runtime expression.


3) The tag may have the attribute "var" supplied.



The correct answers are 2) and 3).

I didnt got it how the answer 3) is correct?


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Sandeep Bhandari
Ranch Hand

Joined: Apr 16, 2004
Posts: 201
<rtexprvalue>false</rtexprvalue>

means that the tag can't take JSP runtime expression as its value which means that values which are present at runtime can't be used.


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
Thanks for replying.
How abt answer 3?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

3) There's an tag attriubte called "var" which is not required. So The tag may have the attribute "var" supplied.


[My Blog]
All roads lead to JavaRanch
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
Thanks Verre Super Bar Tender for reply. But you can see in JSTL core descriptor, the tag attribute 'var' is already there present. SO how it can be supplied?. The thing which is already present how can again be supplied. There can be one reason for that the element <required> is false. That's why it says to be required but it doesnt makes much sense. what you think?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

It means that when you use this tag you can either use (supply) the var attribute :
<c:catch var="bob"> ....
or not
<c:catch> ....
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
i got it, its pretty confusing,,, to understand to depth but thanks very much...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: True Statement about Tag
 
Similar Threads
cutomTags
customTags
Question on tld
MockExam doubt
body-content