wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSF - page 547 - ATTR_TEMPLATE? 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 "HFSF - page 547 - ATTR_TEMPLATE?" Watch "HFSF - page 547 - ATTR_TEMPLATE?" New topic
Author

HFSF - page 547 - ATTR_TEMPLATE?

Leonid Shchervinsky
Ranch Hand

Joined: Sep 07, 2006
Posts: 32
Hi guys:

I cannot figure out where the ATTR_TEMPLATE is coming from in the code on page 547 within the doTag() method:

out.print("<select");
out.print(String.format(ATTR_TEMPLATE, "name", this.name));
out.print(String.format(ATTR_TEMPLATE, "size", this.size));
out.println(">");

Thanks
Leonid


<a href="http://www.shchervinsky.com/java/" target="_blank" rel="nofollow">http://www.shchervinsky.com/java/</a>
Leonid Shchervinsky
Ranch Hand

Joined: Sep 07, 2006
Posts: 32
bottom of the page...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16



[My Blog]
All roads lead to JavaRanch
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
not funny dude i have the same problem
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
Harshana Dias wrote:not funny dude i have the same problem


I was kidding right...i mean i also didnt figure it in first glance...because variables are declared in the bottom of the page..and its kind of not understandable what is done there for a person who did scjp 1.4.. we are cool right? are we Chris
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

and its kind of not understandable what is done there for a person who did scjp 1.4. we are cool right? are we Chris

Yes, we're cool. These are challenging exams.
Hanuma Deepak Muvvala
Ranch Hand

Joined: Nov 20, 2005
Posts: 158
+1 Like
 
 
subject: HFSF - page 547 - ATTR_TEMPLATE?
 
Similar Threads
setDynamicAttribute not being invoked
unable to access the attribute in any of the container scope
Doubt on page 547 HFSJ
Doubt in JSP Custom tags (Simple Tag) in Dynamic Drop Down
logic in dynamic-attribute