• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Manually passing RequestContext to JSP

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using Spring Webflow, I'm trying to get the output of a JSP for PDF generation (following the hints at http://blog.valotas.com/2011/09/get-output-of-jsp-or-servlet-response.html)

The normal redirection to JSP accepts a HttpServletRequest and a HttpServletResponse, but my Webflow JSP expects a Webflow RequestContext. (for commandnames e.g.)

I tried copying the attributes to the HttpServletRequest, but this will not fully work, as the commandName of a form is not available.

Is there any recommended way to manually pass a webflow context to a jsp?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand. If you are outputting a PDF, why are you using a JSP? (instead of a PDF library)

If you are dealing with a JSP, remember you can put anything you want in request.setAttribute(). Including those commands you mentioned.
 
reply
    Bookmark Topic Watch Topic
  • New Topic