Affordable web design - redirect Render an HTTP redirect. The tags within
redirect Render an HTTP redirect. The tags within the Logic tag library can be divided into four separate categories based on how they are used: Value comparison Substring matching Redirecting and forwarding Collection utilities This division into categories is done for the purpose of explanation. The tags are not packaged or arranged into these categories; they all belong to the Logic package. 8.5.1 Value Comparison The value-comparison tags print out the body of the tag if and only if the comparison evaluates to true. There are several different types of comparison tags that you can use, depending on your specific needs. Each of the value-comparison tags takes a value and compares it to the value of a comparison attribute. If the value given can be successfully converted to a number, a number comparison is performed; otherwise, a string comparison is performed. The comparison tags share the common attributes listed in Table 8-6. Table 8-6. Common attributes of the comparison tags Name Description name The name of a bean to use to compare against the value attribute. If the property attribute is used, the value is compared against the property of the bean, instead of the bean itself. parameterThe name of a request parameter to compare the value attribute against. property The variable to be compared is the property (of the bean specified by the name attribute) specified by this attribute. The property reference can be simple, nested, and/or indexed. scope The scope within which to search for the bean named by the name attribute. All scopes will be searched if not specified. value The constant value to which the variable, specified by another attribute(s) of this tag, will be compared. A few examples will help solidify how these comparison tags can be used. To check whether a particular request parameter is present, you can use the Logic present tag:
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.