This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
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: 2041

Hi Madhup,

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

I agree. Here's the link:
subject: attributes to custom tags
It's not a secret anymore!