printing

Changing orientation via a stylesheet

This magic CSS code is able to change the orientation of the printed page:

For more information, take a look to the CSS Print Profile specification I thinked it was not possible to define printing orientation via a simple CSS! A very nice discovery indeed…

Java Session Fancy Printing

    public static final String convertToString(HttpServletRequest request) {        StringBuffer msg = new StringBuffer();        try {             msg.append("*RequestURI:" + request.getRequestURI() + "\n");            msg.append("*ContentType:" + request.getContentType() + "\n");             msg.append("== Request Header\n");            Enumeration headers = request.getHeaderNames();            while (headers.hasMoreElements()) {                String headerName = "" + headers.nextElement();                msg.append(headerName + ":" + request.getHeader(headerName) + "\n");            }            msg.append("\n");                        Enumeration attr …

Java Session Fancy Printing Read More »