This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes attributes to custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "attributes to custom tags" Watch "attributes to custom tags" New topic
Author

attributes to custom tags

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Which options correctly pass two attributes to a custom tag?



I chose the second one over the first ? But the answer was stated incorrect. I cant unserstand why ?


Money for nothing and Java for Free
SCJP, SCWCD
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1700
    
  25

Hi Madhup,

The <jsp:attribute> tag doesn't have a value attribute, you have to pass the value in the body, like this:

Regards,
Frits
 
 
subject: attributes to custom tags