• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Manually passing RequestContext to JSP

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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: 39587
781
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • 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.
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!