-
Oct 22nd, 2009, 11:40 AM
#1
RedirectView to external pdf
Hi,
I'm trying to use RedirectView in my controller to redirect to a pre-generated PDF.
my handInternalRequest method returns this:
return new ModelAndView(new RedirectView(url));
It seems to be finding the PDF, but it isn't being opened by adobe. It is rendering it like a text file in the browser. I tried to set the responses ContextType to application/pdf, but that isn't working either.
Any ideas? What is the proper way to redirect to a PDF file using spring?
-
Oct 22nd, 2009, 12:10 PM
#2
This actually works fine. I had a pathing problem with my pdf file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules