WebDevelopment, ColdFusion, Railo, JS, Database and Tech-related by the Co-Founder and CEO of tunesBag.com

Tuesday, 6 January 2009

Railo - important path placeholders

I'm playing around with railo, a full featured alternative CFML engine and so far, I'm very impressed. During testing my existing applications with this new environment I had to add some custom mappings in the administration (by the way, there are two admin engines, the first one is server-wide, the second one just for the current webroot).

When creating these custom mappings, there are some very interesting path placeholders you can use:
{railo-web}: path to the railo web directory typical "{web-root}/WEB-INF/railo"
{railo-server}: path to the railo server directory typical where the railo.jar is located
{temp-directory}: path to the temp directory of the current user of the system
{home-directory}: path to the home directory of the current user of the system
{web-root-directory}: path to the web root
{system-directory}: path to thesystem directory

This way you can create mappings without using the full path to the directory - very cool!

11 comments:

Sebastiaan en Jonathan said...

Hi,

Trying to make a mapping in Railo with Jetty, but to no avail. The mapping is /nl and the resource (trusted or not) I path to c:\railo\webroot\nl - But Railo keeps nagging me that it cannot find the components (invalid component definition, can't find nl.onlinebase.validation.validationBean). What am I doing wrong? Googling doesn't provide any answers either and the Wiki isn't clear at all. This blogpost was promising but all options tried I'm still no further...

Sonicstate said...

I'm having the same problems did you ever find a solutions

Sebastiaan en Jonathan said...

@Sonicstate:

I cannot remember exactly what I did, but after a restart of Railo thingz started working for me.

My current mapping in the SERVER and WEB admin is as follows:

virtual: /mappingname
resource: {web-root-directory}/cfcfoldername/mappingname
primary: resource
trusted: checked

Note that the angle-brackets { } and what's inside of them is RAILO-custom - a sort of inbuilt shorthand notation of standard paths to places in the RAILO-server.

johnbond said...

Excellent post. I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work…
Bra

savsuns said...

Before reading this I was totally unaware of the topic. Thanks for Explaining in such a nice way. As per my knowledge there some buy lasix which are effective and good. I always prefer them only.

Chris Suja said...

Once again thank you for sharing this list of blogs! I like how your website has Tadalafil Online very clean and simple style, but also very elegant at the same time.

Seo Mumbai said...

Hi , i got this Article , i was searching some thing relevant to this, And i am feeling lucky, as its the perfect one for what i am looking for. I will share this link on face book.
Multiplayer Rummy

Chris Brown said...

Welldone, very interesting Blog.i loved to read this. keep it up.I will share this blog with my friends.If you search Jobs in delhi then visit http://www.jobdezire.com.

Brock Kutchera said...

St Louis Best Hotels

Very good blogging. The most interesting and informative post I've ever seen, so the post bookmared my browser for future visits.Thank you so much for posting this great article, I am so interested on what I read, good and useful content. I would like to invite you to take a look to , you will find some good stuff there.

Unknown said...

Can you get rid of the spam comments?

Gul Ahmed said...

Very Nice..
Learn How To Earn Money Online