This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| component { | |
| /** cfc custom tag init( boolean hasEndTag, component parent ) */ | |
| function init( boolean hasEndTag, component parent ) { | |
| this.name = listFirst(listLast(getCurrentTemplatePath(), '\/'), '.'); | |
| this.parent = arguments.parent ?: "{no-parent}"; | |
| return this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| // setup begin | |
| datasource = { | |
| class:"com.mysql.jdbc.Driver" | |
| ,connectionString:"jdbc:mysql://localhost/test" | |
| ,username:"root" | |
| ,password:"" | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### this is the main config file for nginx, to specify it from the command line, use the -c switch, e.g | |
| #### nginx.exe -c nginx-railo.conf | |
| ##** if connecting to Tomcat, use Tomcat's RemoteIpValve to resolve CGI.REMOTE_ADDR, CGI.SERVER_NAME, and CGI.SERVER_PORT_SECURE | |
| ##** <Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto" remoteIpHeader="X-Forwarded-For" protocolHeaderHttpsValue="https" /> | |
| #user nobody; | |
| #pid logs/nginx.pid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1>F:\Workspace\git\railo21\railo-java\railo-debug\web\test1.cfm</h1> | |
| <DIV> this should be garbled up in DIV 1345854470755: | |
| 8888888b. d8b 888 d8888 | |
| 888 Y88b Y8P 888 d8P888 | |
| 888 888 888 d8P 888 | |
| 888 d88P 8888b. 888 888 .d88b. d8P 888 | |
| 8888888P" "88b 888 888 d88""88b d88 888 | |
| 888 T88b .d888888 888 888 888 888 8888888888 | |
| 888 T88b 888 888 888 888 Y88..88P 888 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.IOException; | |
| import java.io.PrintStream; // TODO: this is for test purpose only; remove it when ridding of this.out | |
| /** | |
| * this class that can extends CFMLWriterWhiteSpace.java to allow for pre-formatted text in PRE tags and TEXTAREAs | |
| */ | |
| public class CFMLWriterWhiteSpacePre extends javax.servlet.jsp.JspWriter { | |
| /* snippet begin */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- | |
| usage: | |
| <cf_BufferContent BufferId="beforeBodyEnd"> | |
| javascript code goes here... | |
| </<cf_BufferContent> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <!DOCTYPE web-app | |
| PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | |
| "http://java.sun.com/dtd/web-app_2_3.dtd"> | |
| <web-app> | |
| <display-name>Railo4</display-name> | |
| <servlet> | |
| <servlet-name>CFMLServlet</servlet-name> | |
| <description>CFML runtime Engine</description> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfsetting requesttimeout="300"> | |
| <cfparam name="nIterations" default="5"> | |
| <cfparam name="nMultiple" default="1"> | |
| <cfset iTarget = 10000000 * nMultiple> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- first select from db !---> | |
| <cfquery name="qTestinmonials"> | |
| SELECT testimonial, author | |
| FROM recommendations | |
| ORDER BY rand() LIMIT 1 | |
| </cfquery> | |
| <!--- now output the data !---> | |
| <cfoutput query="qTestinmonials"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| tr td { border-bottom: 1px dotted gray; vertical-align: top; margin-top: 2px; padding-left: 0.5em; } | |
| tr td:first-child { text-align: right; padding-right: 0.5em; border-right: 1px dotted #CCC; } | |
| table { border: 1px solid gray; width:90%; } | |
| </style> | |
| <cfoutput> | |