This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Scripting in Tag file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Scripting in Tag file" Watch "Scripting in Tag file" New topic
Author

Scripting in Tag file

Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
HFSJ say "You can't do Scripting in body of tag file but can in tag file"
Can some body explain me If not in body where we can do scripting?
Thanks
AR


Thanks, AR
SCWCD 5, SCJP 1.4, OCA (PL/SQL)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

In tag files you'll need nested tags to do the scripting for you. That's why, if you want to allow scripting inside your tag body, a manually written tag class is required.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Scripting in Tag file
 
Similar Threads
Scripting in tag bodies?
JSP scripting elements and tag files
Body-content for Tag file, Classic Tag, Simple Tag
doubt in custom tag HFSJ page 498
Confusion regarding tagfile