« December 2005 | Main | February 2006 »
January 26, 2006
HTTP headers beyond Content-Type in JSP/JSTL
Use setHeader
before the contentType
statement:
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Content-disposition","attachment; filename=annual_finance_report.csv"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
<%@ page contentType="application/vnd.ms-excel"%>
Though you can't do CSV in JSTL because of whitespace issues.
Posted by pj at 03:19 PM
January 24, 2006
XML parsing in JavaScript
Started playing with parsing and extractin information from XML documents with JavaScript:
This XML is parsed by this page..
Posted by pj at 05:17 PM
January 16, 2006
Python charting interface
PyGDChart2 - http://www.nullcube.com/software/pygdchart2/doc/index.html
Posted by pj at 08:32 PM