Two Laptop Bag
The moose likes Java in General and the fly likes Downloading file for I time Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Downloading file for I time" Watch "Downloading file for I time" New topic
Author

Downloading file for I time

Rajesh Santhanakrishnan
Greenhorn

Joined: Jul 16, 2010
Posts: 13
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Downloading file for I time
 
Similar Threads
Error in excel sending additional request
Simple Question
Error in excel sending additional request
passing an object from one controller to another
Excel-format report