This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:attibute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:attibute" Watch "jsp:attibute" New topic


amarkirt saroay
Ranch Hand

Joined: Mar 16, 2008
Posts: 167
<jsp:attribute> : There is a staetment on HFJS page 593,Q7,E)
You are allowed to use this action with dynamic tags.
What do dynamic tags mean?

Where else can I use jsp:attribute other than for body of a custom tag with body-conent set to be empty?

Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi, Amarkirt. If our tag handler class implements DynamicAttributes interface, then we can add attributes dynmically. There is no need to put <attribute>...</attribute> in the tld file, and we don't need to write attribute methods (like setAddMethod().. in our tag handler class).

<jsp:attribute> will not constitute the body of the tag. It must be placed inside the tag. We can't use it alone. With <jsp:attribute> we can set the attribute to the tag.
I agree. Here's the link:
subject: jsp:attibute
It's not a secret anymore!