Entries Tagged as HowTo

Array Compare

November 20, 2012 · 1 Comment

Today I needed to compare two arrays in order to find out what the differences are between the two arrays. In PHP there are around 10 dfferent functions to find out the differences between two arrays. So what I ended up doing is to create a function arrayCompare().

[Read more →]

1 CommentTags: Features · HowTo · Railo 4.0 · Tips

CFHTTP with NTLM

September 04, 2012 · 2 Comments

One of the downsides of CFHTTP is that it does not work with NTLM authentication. The latest version of Railo 4.0.1 allows now to use NTLM authentication as well.

[Read more →]

2 CommentsTags: Features · HowTo · Preview · Railo 4.0 · Tips

isEmpty function

August 17, 2012 · 9 Comments

Very often I do different checks for variables whether they are containing useful information. There are many different ways to do that, but no simple function that checks that for me.

[Read more →]

9 CommentsTags: Extension · Features · HowTo · Railo 4.0

Prevent threading problems with local scope

May 21, 2012 · 2 Comments

By default, variables defined inside a function or method are stored in the variables scope (of the template or the component). This can lead to threading problems if - for instance - a component is stored as a singleton in the application scope. Railo allows you to prevent this problem by controlling the local scope.

[Read more →]

2 CommentsTags: Configuration · HowTo · Performance

Configure contexts individually

May 07, 2012 · No Comments

Railo Server creates a new web context for every website running on the same Railo instance. And since you have an individual web administrator available for each website, you can define different settings for each website which for instance allows you to configure two websites that they run in two time zones.

[Read more →]

No CommentsTags: Configuration · HowTo · Tips

Difference between the web and the server admin

April 30, 2012 · 4 Comments

This is a feature in Railo that confuses new Railo users very often. Railo comes with two types of administrators. In fact there are two type of administrators for every website you host on a system. In Railo all the settings you make in the Railo Web Administrator affect only the website you are calling it from. 

[Read more →]

4 CommentsTags: Configuration · HowTo · Tips · Websites

Chaining function calls and statements

April 23, 2012 · 2 Comments

Imagine you would have to pass an applications name as an url parameter.  There is a shorter way of doing this without having to use a temporary variable.

[Read more →]

2 CommentsTags: HowTo · Tips

Check whether an object is pointing to the same instance than another one

April 16, 2012 · 4 Comments

Sometimes it is important to know whether a certain variable points to the same instance of a complex object than another one. You can easily find that out with the following operator

[Read more →]

4 CommentsTags: HowTo · Tips

Using CFML tags in cfscript

April 09, 2012 · No Comments

CFML only has some equivalents to the available tags in CFSCRIPT. In Railo you can now use almost all tags by just removing the <cf and replacing the last > with a ;

[Read more →]

No CommentsTags: CFML · HowTo · Tips

Defining new queries

April 02, 2012 · 7 Comments

When you need to create a query object, it can be a bit complicated to create one with several columns and rows.  Railo makes it easy.

[Read more →]

7 CommentsTags: HowTo · Tips