It's not a secret anymore!
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "attributes to custom tags" Watch "attributes to custom tags" New topic

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
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2099

Hi Madhup,

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

It is sorta covered in the JavaRanch Style Guide.
subject: attributes to custom tags
It's not a secret anymore!