base/struts-tools/src/main/com/thesett/common/webapp/tags/DebugTag.java
public String getCookies()
    {
        Map info = new TreeMap();
        HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
        Cookie[] cookies = req.getCookies();

        // check that cookies is not null which it may be if there are no cookies
        if (cookies != null)
        {
            for (int i = 0; i < cookies.length; i++)
            {
                Cookie cooky = cookies[i];
                info.put(cooky.getName(), cooky.getValue());
            }
        }

        return toHTMLTable("cookies", info);
    }
public String getCookies()
    {
        Map info = new TreeMap();
        HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
        Cookie[] cookies = req.getCookies();

        // check that cookies is not null which it may be if there are no cookies
        if (cookies != null)
        {
            for (int i = 0; i < cookies.length; i++)
            {
                Cookie cooky = cookies[i];
                info.put(cooky.getName(), cooky.getValue());
            }
        }

        return toHTMLTable("cookies", info);
    }
public String getCookies ( ) { Map info = new TreeMap ( ) ; HttpServletRequest req = ( HttpServletRequest ) pageContext . getRequest ( ) ; Cookie [ ] cookies = req . getCookies ( ) ; // check that cookies is not null which it may be if there are no cookies if ( cookies != null ) { for ( int i = 0 ; i < cookies . length ; i ++ ) { Cookie cooky = cookies [ i ] ; info . put ( cooky . getName ( ) , cooky . getValue ( ) ) ; } } return toHTMLTable ( "cookies" , info ) ; }
Returns a String with all cookie information as an HTML table.

@return A String with all cookie information as an HTML table.
Returns a String with all cookie information as an HTML table .