There is a little tool called JSPExecutor that allows you to do just that. The developers (Hendrik Schreiber <[email protected]> & Peter Rossbach <[email protected]>) aim was not to write a full blown servlet engine, but to provide means to use JSP for generating source code or reports. Therefore most HTTP-specific features (headers, sessions, etc) are not implemented, i.e. no reponseline or header is generated. Nevertheless you can use it to precompile JSP for your website.