This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using struts2-jasperreports-plugin-220.127.116.11 and I'm having a problem getting a correct filename to display when clicking "save as". The default filename that is displayed when the dialog first appears is the name of the action. I have the following in my struts.xml file:
Following the API javadoc, when the output response stream is written, Content-disposition was set with "inline;filename=jasperRptFilename.pdf", which should result in jasperRptFilename.pdf appearing as the default name when the save dialog appears. Rather, the name of the action is shown. I've included an attachment, which shows the name of the action, generateStandardReport.pdf, as the default display name.
Also, "Struts Problem Report" appears as the tab title for the report. I turned the log4j information level to DEBUG, and didn't see one Exception in the log file, so I don't know where that is coming from, and if it's involved in the issue at hand. I've also included an attachment showing that as well.
Any assistance will be GREATLY appreciated. By the way, I'm using jasperreports-4.1.3, along with it's associated dependent jars.