This content has been marked as final.
Show 1 reply
-
1. Re: Seam-pdf - static file download
niox.nikospara.yahoo.com Nov 19, 2009 2:21 PM (in response to miceuz)Hello,
You could:
- Prefix-map the Document Store Servlet and then apply a servlet filter to it that will reject (HTTP 404) any request that doesn't end in .pdf. Then the servlet container will use the standard download
- The servlet spec requires that prefix matches before suffix (see chapter
Mapping Requests to Servlets
). So you could create a simple download servlet, prefix-map it to some path and let it send files that exist to the client. This servlet will take precedence over the Document Store Servlet.