J2EE Learning Notes (3) Struts Logic Tags

xiaoxiao2021-03-06  60

Logic Tags grammar applications - (cookie specifies the name of the cookie to compare with value) (header specifies the name of the HTTP header to compare with value) (parameter specifies the name of the request parameter to compare with value)

(typ) Name Specifies the name of the bean and Property specifies a Property of the bean to facilitate comparison with Value, usually we can also add a scope to limit beanproperty is used in conjunction with name to specify a property in the bean specified by name. The property reference can be simple, nested, and / or indexed. for the type of syntax used for property, see the users guide on the bean Tags.scope specifies the bean scope which can be page, request, session, application, "any scope" (default) 1) value comparison value comparison: equal, notEqual, greaterEqual, lessEqual, lessThan, greaterThan compare logic is - first attempt Convert is long Double and compare; if the Parse failed to compare 1) Value Comparison: Present, Notpresent, Empty, Notempty

Present see if a variable / instance exists in a limited range, EMPTY is not null, "", or collection.isempty () == True (only for collection) 2) Sub string matches Substring Matching: match, notmatchmatch / notmatch also has an optional location to specify that the subString must appear in the string or end (location = "start / end") 3) Presentation location: Forward, Redirect Utilities is unclear 4) Collection utilities : Iterate < / a> If the property to Declaration, Name represents an instance of a bean, and this bean's gettHatProperty () will return the Collection instance required for this tag. If there is no preacty, the Name itself specifies the instance of the collection that will be being used, the ID gives each The name of the current Object of Collection, used to specify which position from the Collection of COLLEction starts internally, where is the Struts Documentation, which is not detailed here.

- == Welcome everyone with the topic of this article and interested, I discuss issues == -

转载请注明原文地址:https://www.9cbs.com/read-112595.html

New Post(0)