Package org.apache.catalina.manager
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 to what I need (call methods with parameters), or I
 am too dumb to use it correctly. :)
- Author:
- Cédrik LIME
- 
Method SummaryModifier and TypeMethodDescriptionstatic Stringstatic StringPerforms the following substring replacements (to facilitate output to XML/HTML pages): & -> & < -> < > -> > " -> " ' -> '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 Details- 
guessDisplayLocaleFromSessionTry 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- Session from which the locale should be guessed
- Returns:
- String
 
- 
guessDisplayUserFromSessionTry to get user name from the session, if possible.- Parameters:
- in_session- The Servlet session
- Returns:
- the user name
 
- 
getDisplayCreationTimeForSession
- 
getDisplayLastAccessedTimeForSession
- 
getDisplayUsedTimeForSession
- 
getDisplayTTLForSession
- 
getDisplayInactiveTimeForSession
- 
secondsToTimeString
- 
escapeXml
- 
escapeXmlPerforms the following substring replacements (to facilitate output to XML/HTML pages):- & -> &
- < -> <
- > -> >
- " -> "
- ' -> '
 - Parameters:
- buffer- The XML to escape
- Returns:
- the escaped XML
 
- 
formatNumber
 
-