Package org.zkoss.web
Class Attributes
- java.lang.Object
-
- org.zkoss.web.Attributes
-
public class Attributes extends java.lang.ObjectDefinition of constants used as attributes and parameters across requests.- Author:
- tomyeh
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALERTThe attribute name that contains the alert passed from another requestHttps.sendRedirect(jakarta.servlet.ServletContext, jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, java.lang.String, java.util.Map, int).static java.lang.StringALERT_TYPEDenote the type ofALERT.static java.lang.StringARGThe attribute used to pass parameters from the caller that invokes Servlets.include() or Servlets.forward() withServlets.PASS_THRU_ATTR.static java.lang.StringASYNC_CONTEXT_PATHThe async context path; set by the servlet container.static java.lang.StringERROR_EXCEPTIONThe attribute to hold the exception, if any.static java.lang.StringERROR_EXCEPTION_LISTThe attribute to hold the exception list, if any.static java.lang.StringFORWARD_CONTEXT_PATHThe original context path that forwards this page; set by the servlet container.static java.lang.StringFORWARD_PATH_INFOThe original servlet path that forwards this page; set by the servlet container.static java.lang.StringFORWARD_QUERY_STRINGThe original servlet path that forwards this page; set by the servlet container.static java.lang.StringFORWARD_REQUEST_URIThe original request URI that forwards this page; set by the servlet container.static java.lang.StringFORWARD_SERVLET_PATHThe original servlet path that forwards this page; set by the servlet container.static java.lang.StringINCLUDE_CONTEXT_PATHThe included context path; set by the servlet container.static java.lang.StringINCLUDE_PATH_INFOThe included servlet path; set by the servlet container.static java.lang.StringINCLUDE_QUERY_STRINGThe included servlet path; set by the servlet container.static java.lang.StringINCLUDE_REQUEST_URIThe included request URI; set by the servlet container.static java.lang.StringINCLUDE_SERVLET_PATHThe included servlet path; set by the servlet container.static java.lang.StringPREFERRED_2DIGITYEARSTARTThe library property used to store the preferred 2DigitYearStart.static java.lang.StringPREFERRED_DATE_FORMAT_INFOThe session attribute used to specify the class used to return the formats of date, time or both for datebox and timebox.static java.lang.StringPREFERRED_FIRST_DAY_OF_WEEKThe session attribute used to store the preferred first-day-of-week.static java.lang.StringPREFERRED_LOCALEThe session attribute used to store the preferred locale (Locale) in a session.static java.lang.StringPREFERRED_TIME_ZONEThe session attribute used to store the preferred time zone (TimeZone) in a session.static java.lang.StringTITLEThe title (String) of a servlet or a portal.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributes()Don't construct it.
-
-
-
Field Detail
-
TITLE
public static final java.lang.String TITLE
The title (String) of a servlet or a portal. Stored as an attribute of the request.- See Also:
- Constant Field Values
-
PREFERRED_LOCALE
public static final java.lang.String PREFERRED_LOCALE
The session attribute used to store the preferred locale (Locale) in a session.- See Also:
- Constant Field Values
-
PREFERRED_TIME_ZONE
public static final java.lang.String PREFERRED_TIME_ZONE
The session attribute used to store the preferred time zone (TimeZone) in a session.- See Also:
- Constant Field Values
-
PREFERRED_FIRST_DAY_OF_WEEK
public static final java.lang.String PREFERRED_FIRST_DAY_OF_WEEK
The session attribute used to store the preferred first-day-of-week. The value must be one ofCalendar.SUNDAY,Calendar.MONDAY,Calendar.SATURDAYand so on.Default: -1 (it means
Calendar.getFirstDayOfWeek()is assumed)Notice that you could specify it as a library property such that it will be the default value for the whole application (with the higher priority than
Calendar.- Since:
- 5.0.3
- See Also:
- Constant Field Values
-
PREFERRED_2DIGITYEARSTART
public static final java.lang.String PREFERRED_2DIGITYEARSTART
The library property used to store the preferred 2DigitYearStart.Default: 1929
- Since:
- 8.6.2
- See Also:
- Constant Field Values
-
PREFERRED_DATE_FORMAT_INFO
public static final java.lang.String PREFERRED_DATE_FORMAT_INFO
The session attribute used to specify the class used to return the formats of date, time or both for datebox and timebox. The class must implementDateFormatInfo.- Since:
- 5.0.7
- See Also:
- Constant Field Values
-
ALERT
public static final java.lang.String ALERT
The attribute name that contains the alert passed from another requestHttps.sendRedirect(jakarta.servlet.ServletContext, jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, java.lang.String, java.util.Map, int). It is automatically reset after the next request is responded. In JSP, web authors use <c:object name="i.alert" scope="request"> to access it.- See Also:
- Constant Field Values
-
ALERT_TYPE
public static final java.lang.String ALERT_TYPE
Denote the type ofALERT. It could be "error", "warning" and undefined. It is used by JSP page to do more accurate page layout.- See Also:
- Constant Field Values
-
ARG
public static final java.lang.String ARG
The attribute used to pass parameters from the caller that invokes Servlets.include() or Servlets.forward() withServlets.PASS_THRU_ATTR.- See Also:
- Constant Field Values
-
INCLUDE_CONTEXT_PATH
public static final java.lang.String INCLUDE_CONTEXT_PATH
The included context path; set by the servlet container.
-
INCLUDE_SERVLET_PATH
public static final java.lang.String INCLUDE_SERVLET_PATH
The included servlet path; set by the servlet container.
-
INCLUDE_REQUEST_URI
public static final java.lang.String INCLUDE_REQUEST_URI
The included request URI; set by the servlet container.
-
INCLUDE_PATH_INFO
public static final java.lang.String INCLUDE_PATH_INFO
The included servlet path; set by the servlet container.
-
INCLUDE_QUERY_STRING
public static final java.lang.String INCLUDE_QUERY_STRING
The included servlet path; set by the servlet container.
-
FORWARD_CONTEXT_PATH
public static final java.lang.String FORWARD_CONTEXT_PATH
The original context path that forwards this page; set by the servlet container.
-
FORWARD_SERVLET_PATH
public static final java.lang.String FORWARD_SERVLET_PATH
The original servlet path that forwards this page; set by the servlet container.
-
FORWARD_REQUEST_URI
public static final java.lang.String FORWARD_REQUEST_URI
The original request URI that forwards this page; set by the servlet container.
-
FORWARD_PATH_INFO
public static final java.lang.String FORWARD_PATH_INFO
The original servlet path that forwards this page; set by the servlet container.
-
FORWARD_QUERY_STRING
public static final java.lang.String FORWARD_QUERY_STRING
The original servlet path that forwards this page; set by the servlet container.
-
ASYNC_CONTEXT_PATH
public static final java.lang.String ASYNC_CONTEXT_PATH
The async context path; set by the servlet container.
-
ERROR_EXCEPTION
public static final java.lang.String ERROR_EXCEPTION
The attribute to hold the exception, if any.- See Also:
- Constant Field Values
-
ERROR_EXCEPTION_LIST
public static final java.lang.String ERROR_EXCEPTION_LIST
The attribute to hold the exception list, if any.- Since:
- 10.2.0
- See Also:
- Constant Field Values
-
-