Announcement Announcement Module
Collapse
No announcement yet.
ExcelView as successView keeps the SimpleFormControllers url Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ExcelView as successView keeps the SimpleFormControllers url

    I'm using SimpleFormController to upload a file and return an ExcelView as the successView. The upload is working and the view is rendering an
    excel file, but the name is the same as formView:
    Code:
    <property name="formView"><value>load</value></property>
    <property name="successView"><value>results_excelView</value></property>		<property name="sessionForm"><value>true</value></property>
    the resulting url is: load.htm.xls upon success, which appears as load.htm
    in the address. When I attempt to save this file from the browser,
    I get very strange behaviour, and excel typically crashes.
    ???

    [/code]

  • #2
    Try setting a response header like this:

    Content-Disposition: inline; filename=myFile.xls

    Rob

    Comment


    • #3
      Thanks Rob! That did the trick. I actually went with attachment Content-Disposition for this case. The crashes were due to the fact that I am using a template whose author loves the use of...3d formatting and other
      interesting (and unsupported in POI) features of excel.

      Is it possible to update the reference 13.6. Document views (PDF/Excel)
      with this tip, and possible a warning about accepting spreadsheet templates
      from the business group?

      Comment

      Working...
      X