aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes pass two attributes to a custom 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 "pass two attributes to a custom tag" Watch "pass two attributes to a custom tag" New topic
Author

pass two attributes to a custom tag

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

Which of the following options correctly pass two attributes to a custom tag?

Select 3 correct options
a <prefix:sometag 'val1' 'val2' />


b <prefix:sometag ${'val1'} ${'val2'} />


c <prefix:sometag attrA='val1' attrB='val2' />


d <prefix:sometag attrA='${"val1"}' attrB='${"val2"}' />


e <prefix:sometag>
<jsp:attribute name='attrA' value='val1' />
<jsp:attribute name='attrB' value='val2' />
</prefix:sometag>


f <prefix:sometag>
<jsp:attribute name='attrA'>val1</jsp:attribute>
<jsp:attribute name='attrB'>val2</jsp:attribute>
</prefix:sometag>


Thanks,
Sherif
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

Sherif, please state the source of where you got this question from. Otherwise you may find this thread removed.

Also, please give your logic for why you think certain parts are correct or why you disagree with the answers that the test source provided. You will learn more that way and it will increase the likelihood of someone responding specifically to your doubt.


A good workman is known by his tools.
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

hi
i found it in a site without any answers , in my view the answers may be b,e,f (ps: i'm weak in EL)
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

Originally posted by Sherif Shehab:
hi
i found it in a site without any answers , in my view the answers may be b,e,f (ps: i'm weak in EL)

Which site?
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

if i found the url i'll send it to you
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: pass two attributes to a custom tag
 
Similar Threads
Why <c:set var=..></c:set> will not accepts <jsp:attribute> inside the body
Which options correctly pass two attributes to a custom tag ?
attributes to custom tags
jsp:attribute - HFJ 472
some important mock exam experiences !!!