raw.jsp revision d8371503c60e1f6933455e25b1cc47e4858a3a43
6642N/ASee LICENSE.txt included in this distribution for the specific
6253N/Afile and include the License file at LICENSE.txt.
6253N/Ainclude file="pageconfig.jspf"
6294N/A cfg = PageConfig.get(request);
6294N/A String redir = cfg.canProcess();
6253N/A if (redir == null || redir.length() > 0) {
6238N/A response.sendRedirect(redir);
File f = cfg.getResourceFile();
String revision = cfg.getRequestedRevision();
if (revision.length() == 0) {
long flast = cfg.getLastModified();
if (request.getDateHeader("If-Modified-Since") >= flast) {
String mimeType = getServletContext().getMimeType(f.getAbsolutePath());
response.setContentType(mimeType);
response.setHeader("content-disposition", "attachment; filename="
+ f.getName());
OutputStream o = response.getOutputStream();
while ((nr = in.read(buffer)) > 0) {
o.write(buffer, 0, nr);
o.flush();
o.close();
in.close();
/* ---------------------- raw.jsp end-------------------- */