This week's book giveaway is in the
We're giving away four copies of
Java 8 in Action
and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
PDF Download not working in Production.
Yogendra Singh Butola
Joined: Sep 28, 2011
Dec 17, 2012 04:07:39
In my Spring MVC based application, I've implemented a
viewer functionality. This functionality is working in DEV,
, and STAGE, however it's not working in production.
Following are the details.
1 In web.xml the
is separately defined as :
2. Servlet code
httpSession = request.getSession();
byte pdfAsByteArray = (byte) httpSession.getAttribute("pdfObject");
response.setHeader("Content-disposition", "attachment; filename=document.pdf");
os = response.getOutputStream();
This works in DEV, TEST, and STAGE, however in Production it's not working.
Following is the URL for production:
it works in production if change the URL to
and given the exact name of the server along with the port number.
Any help will be highly appreciated.
Joined: May 26, 2003
Dec 22, 2012 08:52:41
Does qa use https? If not, your problem is the https setup. If so, what is different between the two.
There isn't really enough information here to be able to suggestion solutions.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: PDF Download not working in Production.
Getting MethodMissingException on trying to run groovy class
JSF 2.0 MyConverter.getAsObject(...) how to get a handle on the backing bean
Simple JPA application on TOMEE
hibernate 4 and spring 3.1.2 issue with LocalSessionFactoryBuilder
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014