public String getParameters ( ) { Map info = new TreeMap ( ) ; ServletRequest req = ( HttpServletRequest ) pageContext . getRequest ( ) ; Enumeration names = req . getParameterNames ( ) ; while ( names . hasMoreElements ( ) ) { String name = ( String ) names . nextElement ( ) ; String [ ] values = req . getParameterValues ( name ) ; StringBuffer sb = new StringBuffer ( ) ; for ( int i = 0 ; i < values . length ; i ++ ) { if ( i != 0 ) { sb . append ( " | " ) ; } sb . append ( values [ i ] ) ; } info . put ( name , sb . toString ( ) ) ; } return toHTMLTable ( "request parameters" , info ) ; }
Returns a String with all request parameter information .