contentType = "application/pdf"
new File(fileLocation)
If an action returns a File, then Scalatra will render it via zero-copy.
--
Ross A. Baker
ba...@alumni.indiana.edu
Indianapolis, IN, USA
What if it gets served by the default servlet? Put the file in
src/main/webapp/foo.pdf and make a request /foo.pdf. Assuming no
route matches, it should slide through the ScalatraFilter and be
served by the default servlet.
--
You received this message because you are subscribed to the Google Groups "scalatra-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalatra-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.