Java Server Pages: A Code-Intensive Premium Reference- P20
Số trang: 10
Loại file: pdf
Dung lượng: 212.74 KB
Lượt xem: 13
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
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 basicstructure. This should help you outline your reading plan if you choose not to read the text from cover tocover. This introduction gives you an overview of what each chapter covers.
Nội dung trích xuất từ tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P20This method returns the value of an attribute as a java.lang.String. getAttributeString()throws no exceptions.Parameters java.lang.StringReturns java.lang.StringgetId() Methodpublic java.lang.String getId()This method returns the value of the id attribute or null. getID() has no parameters and throws noexceptions.Returns java.lang.StringsetAttribute() Methodpublic void setAttribute(java.lang.String name, java.lang.Object value)This method sets the value of an attribute/value pair. setAttribute() returns no value and throws noexceptions.Parameters java.lang.String java.lang.ObjectTagExtraInfo Classpublic abstract class TagExtraInfo extends java.lang.ObjectThis 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 providetranslation-time validation of the tag attributes. The TagExtraInfo class has one field and five methods,described in the following sections.tagInfo Fieldprotected TagInfo tagInfo This field holds a reference to the TagInfo object.TagExtraInfo() Methodpublic TagExtraInfo()This method is the default empty constructor for the TagExtraInfo class. TagExtraInfo() has noparameters, returns no value, and throws no exceptions.getTagInfo() Methodpublic TagInfo getTagInfo()This method returns the TagInfo object for this class. getTagInfo() has no parameters and throws noexceptions.Returns TagInfogetVariableInfo() Methodpublic VariableInfo[] getVariableInfo(TagData data)This method returns information on scripting variables defined by this tag. getVariableInfo() throwsno exceptions. - 191 -Parameters TagDataReturns VariableInfo[]isValid() Methodpublic boolean isValid(TagData data)This method performs translation-time validation of the TagData attributes, returning a boolean valueindicating validity. isValid() throws no exceptions.Parameters TagDataReturns booleansetTagInfo() Methodpublic void setTagInfo(TagInfo info)This method sets the TagInfo object for this class. setTagInfo() returns no value and throws noexceptions.Parameters TagInfoTagInfo Classpublic abstract class TagInfo extends java.lang.ObjectThis class provides Tag information for a tag in a tag library. It is instantiated from the Tag LibraryDescriptor file (TLD). The TagInfo class has nine fields and eleven methods, described in the followingsections.attributeInfo Fieldprivate TagAttributeInfo[] attributeInfo This field holds a reference to an array of TagAttributeInfo objects.BODY_CONTENT_JSP Fieldpublic static final java.lang.String BODY_CONTENT_JSP This field holds a reference to a static constant for getBodyContent(), when it is a JSP.BODY_CONTENT_TAG_DEPENDENT Fieldpublic static final java.lang.String BODY_CONTENT_TAG_DEPENDENTThis field holds a reference to a static constant for getBodyContent(), when it is Tag dependent.bodyContent Fieldprivate java.lang.String bodyContentThis field holds a reference to a java.lang.String containing information on the body content of thesetags.infoString Fieldprivate java.lang.String infoStringThis field holds a reference to a java.lang.String containing the optional string information for thistag.tagClassName Fieldprivate java.lang.String tagClassName - 192 -This field holds a reference to a java.lang.String containing the name of the tag handler class.tagExtraInfo Fieldprivate TagExtraInfo tagExtraInfoThis field holds a reference to an instance providing extra tag info.tagLibrary Fieldprivate TagLibraryInfo tagLibraryThis field holds a reference to an instance of the tag library that contains this tag.tagName Fieldprivate java.lang.String tagNameThis field holds a reference to a java.lang.String containing the name of this tag.TagInfo() Methodpublic TagInfo(java.lang.String tagName, java.lang.String tagClassName, java.lang.String bodycontent, java.lang.String infoString, TagLibraryInfo tagLib, TagExtraInfo tagExtraInfo, TagAttributeInfo[] attribInfo)This method is the constructor for TagInfo. There is no public constructor. This class is to be instantiatedonly from the tag library code under request from some JSP code that is parsing a TLD (Tag LibraryDescriptor). TagInfo() returns no value and throws no exceptions.Parameters java.lang.String java.lang.String java.lang.String java.lang.String TagLibraryInfo TagExtraInfo TagAttributeInfo[]getAttributes() Methodpublic TagAttributeInfo[] getAttributes()This method returns a reference to an array of TagAttributeInfo objects. If a null is returned, thenthere is no attribute information. getAttributes() has no parameters and throws no exceptions.Returns TagAttributeInfo[]getBodyContent() Methodpublic java.lang.String getBodyContent()This method returns a reference to a java.lang.String containing information on the body content ofthese tags. getBody Content() has no parameters and throws no exceptions.Returns java.lang.StringgetInfoString() Methodpublic java.lang.String getInfoString() - 193 -This method returns a reference to a java.lang.String containing the optional string information forthis tag. getInfoString() has no parameters and throws no exceptions.Returns java.lang.StringgetTagClassName() Methodpublic java.lang.String getTagClassName()This method returns a reference to a java.lang.String containing the name of the tag handler class.getTagClassName() has no parameters and th ...
Nội dung trích xuất từ tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P20This method returns the value of an attribute as a java.lang.String. getAttributeString()throws no exceptions.Parameters java.lang.StringReturns java.lang.StringgetId() Methodpublic java.lang.String getId()This method returns the value of the id attribute or null. getID() has no parameters and throws noexceptions.Returns java.lang.StringsetAttribute() Methodpublic void setAttribute(java.lang.String name, java.lang.Object value)This method sets the value of an attribute/value pair. setAttribute() returns no value and throws noexceptions.Parameters java.lang.String java.lang.ObjectTagExtraInfo Classpublic abstract class TagExtraInfo extends java.lang.ObjectThis 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 providetranslation-time validation of the tag attributes. The TagExtraInfo class has one field and five methods,described in the following sections.tagInfo Fieldprotected TagInfo tagInfo This field holds a reference to the TagInfo object.TagExtraInfo() Methodpublic TagExtraInfo()This method is the default empty constructor for the TagExtraInfo class. TagExtraInfo() has noparameters, returns no value, and throws no exceptions.getTagInfo() Methodpublic TagInfo getTagInfo()This method returns the TagInfo object for this class. getTagInfo() has no parameters and throws noexceptions.Returns TagInfogetVariableInfo() Methodpublic VariableInfo[] getVariableInfo(TagData data)This method returns information on scripting variables defined by this tag. getVariableInfo() throwsno exceptions. - 191 -Parameters TagDataReturns VariableInfo[]isValid() Methodpublic boolean isValid(TagData data)This method performs translation-time validation of the TagData attributes, returning a boolean valueindicating validity. isValid() throws no exceptions.Parameters TagDataReturns booleansetTagInfo() Methodpublic void setTagInfo(TagInfo info)This method sets the TagInfo object for this class. setTagInfo() returns no value and throws noexceptions.Parameters TagInfoTagInfo Classpublic abstract class TagInfo extends java.lang.ObjectThis class provides Tag information for a tag in a tag library. It is instantiated from the Tag LibraryDescriptor file (TLD). The TagInfo class has nine fields and eleven methods, described in the followingsections.attributeInfo Fieldprivate TagAttributeInfo[] attributeInfo This field holds a reference to an array of TagAttributeInfo objects.BODY_CONTENT_JSP Fieldpublic static final java.lang.String BODY_CONTENT_JSP This field holds a reference to a static constant for getBodyContent(), when it is a JSP.BODY_CONTENT_TAG_DEPENDENT Fieldpublic static final java.lang.String BODY_CONTENT_TAG_DEPENDENTThis field holds a reference to a static constant for getBodyContent(), when it is Tag dependent.bodyContent Fieldprivate java.lang.String bodyContentThis field holds a reference to a java.lang.String containing information on the body content of thesetags.infoString Fieldprivate java.lang.String infoStringThis field holds a reference to a java.lang.String containing the optional string information for thistag.tagClassName Fieldprivate java.lang.String tagClassName - 192 -This field holds a reference to a java.lang.String containing the name of the tag handler class.tagExtraInfo Fieldprivate TagExtraInfo tagExtraInfoThis field holds a reference to an instance providing extra tag info.tagLibrary Fieldprivate TagLibraryInfo tagLibraryThis field holds a reference to an instance of the tag library that contains this tag.tagName Fieldprivate java.lang.String tagNameThis field holds a reference to a java.lang.String containing the name of this tag.TagInfo() Methodpublic TagInfo(java.lang.String tagName, java.lang.String tagClassName, java.lang.String bodycontent, java.lang.String infoString, TagLibraryInfo tagLib, TagExtraInfo tagExtraInfo, TagAttributeInfo[] attribInfo)This method is the constructor for TagInfo. There is no public constructor. This class is to be instantiatedonly from the tag library code under request from some JSP code that is parsing a TLD (Tag LibraryDescriptor). TagInfo() returns no value and throws no exceptions.Parameters java.lang.String java.lang.String java.lang.String java.lang.String TagLibraryInfo TagExtraInfo TagAttributeInfo[]getAttributes() Methodpublic TagAttributeInfo[] getAttributes()This method returns a reference to an array of TagAttributeInfo objects. If a null is returned, thenthere is no attribute information. getAttributes() has no parameters and throws no exceptions.Returns TagAttributeInfo[]getBodyContent() Methodpublic java.lang.String getBodyContent()This method returns a reference to a java.lang.String containing information on the body content ofthese tags. getBody Content() has no parameters and throws no exceptions.Returns java.lang.StringgetInfoString() Methodpublic java.lang.String getInfoString() - 193 -This method returns a reference to a java.lang.String containing the optional string information forthis tag. getInfoString() has no parameters and throws no exceptions.Returns java.lang.StringgetTagClassName() Methodpublic java.lang.String getTagClassName()This method returns a reference to a java.lang.String containing the name of the tag handler class.getTagClassName() has no parameters and th ...
Tìm kiếm theo từ khóa liên quan:
nhập môn lập trình kỹ thuật lập trình lập trình flash lập trình web ngôn ngữ html lập trình hướng đối tượngGợi ý tài liệu liên quan:
-
Đề cương chi tiết học phần Cấu trúc dữ liệu và giải thuật (Data structures and algorithms)
10 trang 317 0 0 -
Giáo trình Lập trình hướng đối tượng: Phần 2
154 trang 275 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 265 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 207 0 0 -
101 trang 200 1 0
-
Giới thiệu môn học Ngôn ngữ lập trình C++
5 trang 194 0 0 -
Bài giảng Nhập môn về lập trình - Chương 1: Giới thiệu về máy tính và lập trình
30 trang 166 0 0 -
Luận văn: Nghiên cứu kỹ thuật giấu tin trong ảnh Gif
33 trang 153 0 0 -
Luận văn tốt nghiệp Công nghệ thông tin: Xây dựng website bán hàng nông sản
67 trang 141 0 0 -
Giáo trình nhập môn lập trình - Phần 22
48 trang 138 0 0