Results 1 to 2 of 2

Thread: RedirectView to external pdf

  1. #1
    Join Date
    Oct 2009
    Posts
    2

    Default 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?

  2. #2
    Join Date
    Oct 2009
    Posts
    2

    Default

    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
  •