Phani Kiran Rudravarapu

Greenhorn
+ Follow
since Jul 31, 2012
Phani Kiran likes ...
Android MySQL Database Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Phani Kiran Rudravarapu

Thanks for your immediate reply. I tried using 'inline' instead of attachment and still same issue.
The file download works fine in Firefox but in IE i get a HTTP 500 Internal Server error.
10 years ago
Hi,

We are facing something similar issue. We need to give a progress bar for file downloads and we are thinking of using jquery.download.js
This involves setting response's header with a cookie. When we tested this on our local machine with Tomcat it works fine.
But when we put it on Websphere it doesn't.

We can't try CookiesConfigureNoCache=false setting as getting admin access and modifying this property might be a bureaucratic nightmare.

In the link shared in above posts, i couldn't get what exactly this means "So if we just set the Cache-Control header after all the cookie processing was complete, the header would then be passed unmolested to the client".

Our code to provide an excel file as save-as is pretty simple like below. What should i change in the below to make the cookie setting work in WebSphere?

10 years ago

Mili Dua wrote: IS THERE ANY POSSIBILITY THAT or i should say that whether it can happen that the two objects are unequal but calling the hashcode() method on each of them must produce the same integer result ??



Is there a possibility that two objects are unequal but calling hashCode produces the same integer result? Yes, if the hashCode method is not properly overridden.

Are there any scenarios where it should be like this? No. This kind of hashCode implementation is an inefficient one. Legal, but inefficient.

To avoid scenarios like these, the same instance variables used in overridden equals method are used in the overridden hashCode method. And static and transient variables are not supposed to be used.