Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

<c:out ... Is it a custom tag?

 
Sai Surya
Ranch Hand
Posts: 463
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

The HFSJ has a mock exam question ...

Q. Assuming the appropriate taglib directives, which are valid examples of custom tag usage?
(Choose all that apply.)

A. <foo:bar/>
B. <my:tag></my:tag>
C. <mytag value="x"/>
D. <cut value="x"/>
E. <jsp:setProperty name="a" property="b" value="c"/>

I answered A and B. However, the correct answer is ABD.

Since the question only asks the valid example of custom tag, I considered <cut as NOT custom since its part of JSTL.

Am I correct?

>
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65653
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike the standard actions, the JSTL must be declared via a taglib declaration on the page, so it can be considered a custom tag library even if it is based upon a standard.
 
Sai Surya
Ranch Hand
Posts: 463
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Unlike the standard actions, the JSTL must be declared via a taglib declaration on the page, so it can be considered a custom tag library even if it is based upon a standard.


Thanks you
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!