This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 483

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: 4727

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: 483

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: 4727

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: 483

if i found the url i'll send it to you
 
Have you checked out Aspose?
 
subject: pass two attributes to a custom tag
 
jQuery in Action, 3rd edition