org.apache.catalina.manager

Class JspHelper

public class JspHelper extends Object

Helper JavaBean for JSPs, because JSTL 1.1/EL 2.0 is too dumb to to what I need (call methods with parameters), or I am too dumb to use it correctly. :)

Author: Cédrik LIME

Method Summary
static StringescapeXml(Object obj)
static StringescapeXml(String buffer)
Performs the following substring replacements (to facilitate output to XML/HTML pages): & -> & < -> < > -> > " -> " ' -> ' See also OutSupport.writeEscapedXml().
static StringformatNumber(long number)
static StringgetDisplayCreationTimeForSession(Session in_session)
static StringgetDisplayInactiveTimeForSession(Session in_session)
static StringgetDisplayLastAccessedTimeForSession(Session in_session)
static StringgetDisplayTTLForSession(Session in_session)
static StringgetDisplayUsedTimeForSession(Session in_session)
static StringguessDisplayLocaleFromSession(Session in_session)
Try to get user locale from the session, if possible.
static StringguessDisplayUserFromSession(Session in_session)
Try to get user name from the session, if possible.
static StringsecondsToTimeString(long in_seconds)

Method Detail

escapeXml

public static String escapeXml(Object obj)

escapeXml

public static String escapeXml(String buffer)
Performs the following substring replacements (to facilitate output to XML/HTML pages): & -> & < -> < > -> > " -> " ' -> ' See also OutSupport.writeEscapedXml().

formatNumber

public static String formatNumber(long number)

getDisplayCreationTimeForSession

public static String getDisplayCreationTimeForSession(Session in_session)

getDisplayInactiveTimeForSession

public static String getDisplayInactiveTimeForSession(Session in_session)

getDisplayLastAccessedTimeForSession

public static String getDisplayLastAccessedTimeForSession(Session in_session)

getDisplayTTLForSession

public static String getDisplayTTLForSession(Session in_session)

getDisplayUsedTimeForSession

public static String getDisplayUsedTimeForSession(Session in_session)

guessDisplayLocaleFromSession

public static String guessDisplayLocaleFromSession(Session in_session)
Try to get user locale from the session, if possible. IMPLEMENTATION NOTE: this method has explicit support for Tapestry 3 and Struts 1.x

Parameters: in_session

Returns: String

guessDisplayUserFromSession

public static String guessDisplayUserFromSession(Session in_session)
Try to get user name from the session, if possible.

Parameters: in_session

Returns: String

secondsToTimeString

public static String secondsToTimeString(long in_seconds)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.