aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes TLD - Default value of <required> element 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 "TLD - Default value of <required> element" Watch "TLD - Default value of <required> element" New topic
Author

TLD - Default value of <required> element

Kathiresan Chinna
Ranch Hand

Joined: Aug 17, 2008
Posts: 115
Hi there,

In TLD file for a custom tag
<attribute>
<name>
<required>
</attribute>

The <rtexprvalue> is optional and default is false.

Can anybody tell, whether <required> element is mandatory or not ?
if optional then what is the default value ?

Thanks
Kathir
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You can check this kind of thing in the JSP specification (download it if you don't have it yet). It's an optional tag, and it defaults to false.


[My Blog]
All roads lead to JavaRanch
Kathiresan Chinna
Ranch Hand

Joined: Aug 17, 2008
Posts: 115
Thanks Christophe

I have JavaServer Pages™ Specification Version2.1
I see this only in attribute directive

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Be careful, you have to use the JSP 2.0 spec. The XML Schema is listed at Appendix JSP.C.1XML Schema for TLD, JSP 2.0. You'll find the description for all tags there.
Kathiresan Chinna
Ranch Hand

Joined: Aug 17, 2008
Posts: 115
oh.. Thankyou
 
wood burning stoves
 
subject: TLD - Default value of <required> element