Class JspHelper
java.lang.Object
org.apache.catalina.manager.JspHelper
Helper JavaBean for JSPs, because JSTL 1.1/EL 2.0 is too dumb to do what I need (call methods with parameters), or I
am too dumb to use it correctly. :)
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringEscapes XML special characters in the given object's string representation.static StringPerforms the following substring replacements (to facilitate output to XML/HTML pages): & -> & < -> < > -> > " -> " ' -> 'static StringformatNumber(long number) Formats a long number using the default locale's number format.static StringgetDisplayCreationTimeForSession(Session in_session) Returns the formatted creation time for the given session.static StringgetDisplayInactiveTimeForSession(Session in_session) Returns the formatted inactive time for the given session.static StringgetDisplayLastAccessedTimeForSession(Session in_session) Returns the formatted last accessed time for the given session.static StringgetDisplayTTLForSession(Session in_session) Returns the formatted time-to-live for the given session.static StringgetDisplayUsedTimeForSession(Session in_session) Returns the formatted total used time for the given session.static StringguessDisplayLocaleFromSession(Session in_session) Try to get user locale from the session, if possible.static StringguessDisplayUserFromSession(Session in_session) Try to get username from the session, if possible.static StringsecondsToTimeString(long in_seconds) Converts a number of seconds to a formatted time string in HH:mm:ss format.
-
Method Details
-
guessDisplayLocaleFromSession
-
guessDisplayUserFromSession
-
getDisplayCreationTimeForSession
-
getDisplayLastAccessedTimeForSession
-
getDisplayUsedTimeForSession
-
getDisplayTTLForSession
-
getDisplayInactiveTimeForSession
-
secondsToTimeString
Converts a number of seconds to a formatted time string in HH:mm:ss format.- Parameters:
in_seconds- the number of seconds- Returns:
- the formatted time string
-
escapeXml
-
escapeXml
-
formatNumber
Formats a long number using the default locale's number format.- Parameters:
number- the number to format- Returns:
- the formatted number string
-