• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

ActionForward after Excel display

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using struts 1.3.8. I have a simple JSP page with a button, the click of which generates an Excel file. Inside my action class, I write the excel file to response's output stream. I dont want my ActionForward to redirect me anywhere. I just want to stay on the same JSP page that requested for the Excel file.

I tried redirecting my ActionForward to null, but I am getting an exception while doing that. Any thoughts?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what "redirecting an ActionForward to null" means, but you should be able to return null from the action to prevent further Struts processing of the response.
 
reply
    Bookmark Topic Watch Topic
  • New Topic