• Post Reply Bookmark Topic Watch Topic
  • New Topic

Downloading file for I time  RSS feed

Rajesh Santhanakrishnan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!