Class Util
java.lang.Object
org.apache.taglibs.standard.tag.common.core.Util
Utilities in support of tag-handler classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContentTypeAttribute(String input, String name) Get the value associated with a content-type attribute.static EnumerationgetRequestLocales(HttpServletRequest request) HttpServletRequest.getLocales() returns the server's default locale if the request did not specify a preferred language.static intstatic int
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getScope
-
getStyle
- Throws:
JspException
-
getContentTypeAttribute
Get the value associated with a content-type attribute. Syntax defined in RFC 2045, section 5.1. -
getRequestLocales
HttpServletRequest.getLocales() returns the server's default locale if the request did not specify a preferred language. We do not want this behavior, because it prevents us from using the fallback locale. We therefore need to return an empty Enumeration if no preferred locale has been specified. This way, the logic for the fallback locale will be able to kick in.
-