Results 1 to 4 of 4

Thread: Viewing a pdf

  1. #1
    Join Date
    Aug 2011
    Posts
    3

    Default Viewing a pdf

    Hi,

    I have a pdf that is passed a model object and then using AbstractPdfStamperView to populate the form fields. This is called from my controller.

    I also have a flow setup where the end state displays the object and results on the screen.

    I am trying to figure out how I can pass this model object from my flow to the controller to show the pdf? Right now I have the pdf as a link but I can't get the model to the controller.

    Is this the correct way to do this?

    If not, is there a better way to do this with webflow?

    Im using webflow 2.3 and spring 3.0.5.

    Thanks

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hello

    If my memory doesnt fail me. SWF cant call or reuse a Spring MVC Controller, you should consider call a service directly or create an Action class and call the service from there, Action term is the same than a Controller in Spring MVC but Action is used for SWF

    Read my tutorial about Spring Web MVC - Spring Web Flow Working With JasperReports
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Aug 2011
    Posts
    3

    Default My working solution

    Here is a link to the solution I have working.

    Solution

  4. #4

    Default

    Ya, the links comtent is a good way, in fact, you can find another way to solve it in the same website.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •