• 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
Pie
Posts: 65335
97
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic