Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Returning .xlsx from a ResultType of stream

 
Ranch Hand
Posts: 54
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am struggling to output just the simplest of workbooks as a stream result. Here is what I got for my Action



And here is from my .jsp



And here is the part from my struts.xml file:



What I get is
  • status = 500
  • statusText = error
  • readyState = 4


  • From my oc4j logs, I get
  • Starting XLSX generation
  • line 1


  • After that, I get no more logs and the jsp stays where it is without reloading or taking any other aciton. I can not figure why the action is being short-circuited like this without getting to either one of the two return statements. I thought maybe timeout, but this does not seem to be the case. Any other ideas why I can not return .xlsx content?
     
    Nothing? Or something? Like this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
      Bookmark Topic Watch Topic
    • New Topic