{"id":280,"date":"2003-02-19T00:22:33","date_gmt":"2003-02-19T04:22:33","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=280"},"modified":"2003-02-19T00:22:33","modified_gmt":"2003-02-19T04:22:33","slug":"using-google-coldfusion","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/02\/19\/using-google-coldfusion\/","title":{"rendered":"Using Google &amp; ColdFusion"},"content":{"rendered":"<p>I&#8217;m sure <a href=\"http:\/\/www.macromedia.com\/desdev\/mx\/coldfusion\/articles\/googlews.html\">this<\/a> has been on Macromedia&#8217;s site for a bit, but it&#8217;s an interesting article for two reasons:<\/p>\n<p>a) I&#8217;ve never really looked into the CFX documentation, but it appears from this article that creating a <a href=\"http:\/\/livedocs.macromedia.com\/cfmxdocs\/CFML_Reference\/CFXRef_Java.jsp\">CFX<\/a>, at least in <a href=\"http:\/\/livedocs.macromedia.com\/cfmxdocs\/CFML_Reference\/CFXRef_Java2.jsp#1142286\">Java<\/a>, is a snap.  Basically you implement the <a href=\"http:\/\/livedocs.macromedia.com\/cfmxdocs\/CFML_Reference\/CFXRef_Java3.jsp#1116533\">CustomTag<\/a> interface, which means you only have to write one method, <a href=\"http:\/\/livedocs.macromedia.com\/cfmxdocs\/CFML_Reference\/CFXRef_Java3.jsp#1117853\">processRequest()<\/a>, which looks very much like the <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/http\/HttpServlet.html#doGet(javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)\">doGet()<\/a> method of the <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/http\/HttpServlet.html\">HttpServlet<\/a>. After that you can write to the screen (ie: <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/ServletOutputStream.html#print(java.lang.String)\">out.println()<\/a> in servlet land == response.write() in CFX land), create a Query object for a CF page to loop over, or simply set a variable and return that variable to the calling template (response.setVariable() which is probably very much like <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/ServletRequest.html#setAttribute(java.lang.String,%20java.lang.Object)\">request.setAttribute()<\/a> in servlet land).<\/p>\n<p>b) Couldn&#8217;t the author have done everything in a CF script using <a href=\"http:\/\/livedocs.macromedia.com\/cfmxdocs\/CFML_Reference\/Tags-pt28.jsp#1101604\">createObject()<\/a> rather than using a CFX?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m sure this has been on Macromedia&#8217;s site for a bit, but it&#8217;s an interesting article for two reasons: a) I&#8217;ve never really looked into the CFX documentation, but it appears from this article that creating a CFX, at least in Java, is a snap. Basically you implement the CustomTag interface, which means you only &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/02\/19\/using-google-coldfusion\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using Google &amp; ColdFusion<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/280"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}