Java Server Pages: A Code-Intensive Premium Reference- P20

Java Server Pages: A Code-Intensive Premium Reference- P20:Before you begin reading Pure JSP Java Server Pages, you might want to take a look at its basic structure. This should help you outline your reading plan if you choose not to read the text from cover to cover. This introduction gives you an overview of what each chapter covers. | This method returns the value of an attribute as a . getAttributeString throws no exceptions. Parameters Returns getId Method public getId This method returns the value of the id attribute or null. getID has no parameters and throws no exceptions. Returns setAttribute Method public void setAttribute name value This method sets the value of an attribute value pair. setAttribute returns no value and throws no exceptions. Parameters TagExtraInfo Class public abstract class TagExtraInfo extends This class provides extra tag information for a custom tag. It is mentioned in the Tag Library Descriptor file TLD . This class must be used if the tag defines any scripting variables or if the tag wants to provide translation-time validation of the tag attributes. The TagExtraInfo class has one field and five methods described in the following sections. tagInfo Field protected TagInfo tagInfo This field holds a reference to the TagInfo object. TagExtraInfo Method public TagExtraInfo This method is the default empty constructor for the TagExtraInfo class. TagExtraInfo has no parameters returns no value and throws no exceptions. getTagInfo Method public TagInfo getTagInfo This method returns the TagInfo object for this class. getTagInfo has no parameters and throws no exceptions. Returns TagInfo getVariableInfo Method public VariableInfo getVariableInfo TagData data This method returns information on scripting variables defined by this tag. getVariableInfo throws no exceptions. - 191 - Parameters Tag Data Returns VariableInfo isValid Method public boolean isValid TagData data This method performs translation-time validation of the TagData attributes returning a boolean value indicating validity. isValid throws no exceptions. Parameters TagData Returns boolean setTagInfo Method public void setTagInfo TagInfo info .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.