coldfusion-9

Content-disposition being ignored in IE 9 and Firefox 13

a 夏天 提交于 2019-12-13 13:11:26
问题 I am trying to dynamically create an inline PDF that, when the user chooses to save it, prompts with my custom filename. According to the documentation, the saveasname attribute should do what I want. (format="PDF" only) The filename that appears in the SaveAs dialog when a user saves a PDF file written to the browser. However, what is happening in both IE 9 and in Firefox 13.0.1 is that the filename that appears in the SaveAs dialog is the same as my CF template, but with a PDF extension.

How to identify what version jar is running under ColdFusion

故事扮演 提交于 2019-12-13 05:25:19
问题 How can I update the jar files to the latest version which comes with coldfusion installation? I can see jar files, with different versions, under different locations. How can I confirm which version of the jar is currently running and what are the locations ColdFusion looks for these jars? For example, in coldfusion\lib I have these jars: commons-collections.jar commons-collections.3.1.jar commons-collections.3.2.jar Then in another location \Coldfusion\cfusion\lib , I have: commons

CFDocument: coldfusion.document.spi.DocumentExportException: java.lang.NullPointerException

萝らか妹 提交于 2019-12-13 04:39:44
问题 I am trying to create a pdf using cfdocument but ColdFusion keeps throwing an exception and I can't find a way to work around this. This is the code that I am using: <cfdocument format="pdf" filename="rep_report.pdf" overwrite="yes" name="rep_report"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Dynamic Drop Down List in ColdFusion 9

夙愿已清 提交于 2019-12-13 04:11:19
问题 Alright so people were not understanding clearly my question, so I removed the url where there was a question already asked by someone else and there I didn't got the perfect answer.. So here is the Question........ I am looking to code a dynamic drop down list within ColdFusion. What I want is the drop down list to be populated by the above drop down list (example: Select Province (B.C) will populate the City drop down list with all cities within that Province). Province data will be

NullPointerExceptions in ColdFusion 9 and ColdBox on localhost

六眼飞鱼酱① 提交于 2019-12-13 02:29:42
问题 I'm running CF 9.0.1 Developer and Coldbox 3.0.0 on my local machine (64-bit Windows Vista running 32-bit CF9 on Apache). I'm working on an application that I've checked out from SVN and deployed locally. Everything seems to be working correctly, but my application log is filling up with entries like this: Apr 18, 2011 12:41 PM Error jrpp-7 exception.log has an extremely long stack trace for each exception, maybe 150 lines or so. It starts with this: "Error","jrpp-4","04/18/11","11:07:30",,""

CfChart Stacked bars and unstacked Lines

百般思念 提交于 2019-12-13 01:51:42
问题 I am trying to create a CFChart with Stacked Bars and unstacked Lines. Have been trying to work around in the Webcharts Tool but no luck so far. In the example image all the series are seriesplacement=stacked , but I want to have the bars(Avg and TDD) as stacked and the lines (Max and Min) as seriesplacement=default . Is there a way to achieve the same in Cfchart? 回答1: If I am understanding correctly, just set the placement of the line series in your xml style: <?xml version="1.0" encoding=

cfspreadsheet fails to read empty rows

拥有回忆 提交于 2019-12-12 22:06:34
问题 Given a spreadsheet with N logical rows Where one row is totally blank* cfspreadsheet action="read" will return a query with a RecordCount of N - 1. *A totally blank row is a row where every cell is actually blank. See CELL_TYPE_BLANK in the POI docs. Is it possible for cfspreadsheet to include empty rows? 回答1: No. Since spreadsheet data is not always contiguous, <cfspreadsheet action="read" query="queryName" ...> and <cfspreadsheet action="read" format="csv|html" ..> deliberately screen out

Getting a list of running requests in ColdFusion 9 standard edition

限于喜欢 提交于 2019-12-12 18:59:40
问题 Does anyone know if there is a way in Adobe ColdFusion 9 standard edition to get a list of the running requests? Maybe by invoking a method from one of the CF Java objects, like coldfusion.server.ServiceFactory??? I know in enterprise you can use the server monitor for this but as we are using standard edition we do not have the server monitor available. Thanks. 回答1: Thanks to the steer from @barnyr I have managed to get some code that will output a list of the currently running script names,

Using Java libraries with ColdFusion 9

混江龙づ霸主 提交于 2019-12-12 18:31:49
问题 I am currently running a Java application which applies some natural language processing techniques to analyze data. This application includes a Java Class file and 1 library of .bin extension The application works fine on my development server but on the live server I get the error below: Object instantiation exception. An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: opennlp/tools/util/ObjectStream. Stack Trace java

coldfusion add an id to certain classes

烈酒焚心 提交于 2019-12-12 18:14:28
问题 Currently I have a bunch of HTML stored in a variable that I am outputting to the page that looks a little like this: <p class="firstpara">some stuff</p> <p class="subhead">a heading</p> <p class="subsubhead">a subheading</p> <p>wording and such</p> <p class="subsubhead">another subheading</p> you get the idea. and is output like: <cfoutput> #request.oEntry.getHTMLStuff()# </cfoutput> Anyway, I need to find all classes of "subsubhead" and add in a id="x" where x corresponds to a database id i