• 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

Downloading file for I time

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Below is my scenario.
I have 2 JVM's. I recieve a request from JVM1 to JVM2 through response.redirect
In JVM 2 , I have 2 controllers. I recieve the request from JVM 1 in controller1 & forward the same to controller2.
In controller2 i am trying to the write the contents in the excel, I am getting the error dialog that excel cannot be downloaded.
From the dialog box , it is apparent that it is trying to download the content from abc.do instead of xyz.xlsx
When I try for the second time it is downloading properly. It happens only for the first time.

Analysis made :
The excel is not getting written to cache for the I time. Also if i recieve the request in controller2 instead of forwarding from contoller1 its working fine.
Could anyone please help me on this.

Thanks
Rajesh
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic