public String getApplicationScope ( ) { Map info = new TreeMap ( ) ; ServletContext context = pageContext . getServletContext ( ) ; Enumeration names = context . getAttributeNames ( ) ; while ( names . hasMoreElements ( ) ) { String name = ( String ) names . nextElement ( ) ; Object value = context . getAttribute ( name ) ; info . put ( name , toStringValue ( value ) ) ; } return toHTMLTable ( "application scope" , info ) ; }
Returns a String with all application scope variables .