ColdFusion – get admin mappings

Written on 19 December 2011, 03:43pm

Tagged with:

Here is a very useful recipe from the Adobe Cookbooks: how to retrieve the mappings from the admin area.
It’s really simple, it involves using the coldfusion.server.ServiceFactory java class, but I am posting it here because I am sure that I will come back to this post at some point in the future 🙂

<cffunction name="getMappings" access="public" returntype="struct" output="false">
    <cfset var mappings = StructNew()>
    <cfset ServiceFactory = createObject("java","coldfusion.server.ServiceFactory")>
    <cfset mappings = ServiceFactory.runtimeService.getMappings()>
    <cfreturn mappings>

Et voila:

This is useful when you don’t have access to the CF Admin interface.

Remember that the CF Admin Mappings are for ColdFusion, while the virtual directories are for the web server!

Update, 02 March 2015: In case you have access to ColdFusion configuration files, the mappings can be found in plain text in the file neo-runtime.xml (link)

The Web in 2011: these are exciting times!

Written on 16 December 2011, 12:32pm

Tagged with: , , , ,

This is a selection of the most important ideas expressed in this article: What I Learned About the Web in 2011

User experience

Emotion is at the heart of every decision we make. Emotion shapes our behavior by casting the tie-breaking vote when logic determines appropriate options for our consideration.
It’s centrally important to seek simplicity, and especially to avoid making things hard to use or understand.
Most websites and apps launching today all are beautifully designed with care.
God is in the details.

Mobile apps

A small screen doesn’t signal a desire to do less. The real question isn’t what to take out of a mobile app, but what to add.
Websites are becoming more and more “app-like.”
Mobile payments – increasing percent

Responsive design

Speed: A web application is a “living” thing and all living things are continually changing from cradle to grave. The faster they can respond, the better they can adapt to change.
Websites should be intelligently malleable things—adaptable and responsive to a broad continuum of uses and devices
Silent browser updates: how can we best help our users understand the changes in experiences that they will encounter as we adapt to building single, responsive sites?

The Web

We have to start realizing that our job is no longer solely to produce sites, apps, and pages built in HTML, CSS, and JavaScript. We have to expand our definition of what the “web” is. More and more, the “web” is not a platform. It’s a service with clients on many platforms.
That iteration is king and that perfection should never be achieved—shipping it is more important than trying to perfect it endlessly behind the scenes. It’s better to release with a solid core set of features and then iterate and add as time or users necessitate it.