Creating ColdFusion Application using Fusebox 4.1
page 4 of 5
by Babita Baliarsingha
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 30082/ 66

Example

How to display the Helloworld using fusebox technology?

Step 1

First off, download the core files from the website of Fusebox. I am going to be working in the folder D:\project\TestDocument accessible via my browser as http://localhost/FB4.

Since this is a web application, we need the web server. I have used the web server named Internet Information services (ISS). In the IIS, create the virtual directory FB4 whose local Path is D:\Project\ TestDocument in the properties.

Step 2

Create a cfm file called as dsp_helloworld.cfm in that folder containing the following code.

Listing 11

<html>
<head>
<title>
Hello World
</title>
</head>
<body>
<h3>Hello World!!</h3>
</body>
</html>

Now we have the display file that will display the message, but we need to do a little more to get the application to work.

Step 3

Create another file called circuit.xml.cfm. This file uses the XML to define the fuseaction within a particular circuit in the application.

Listing 12

<circuit access="public">
<fuseaction name="helloworld">
<include template="dsp_helloworld.cfm" />
</fuseaction>
</circuit>

Step 4

In this step we need to edit the fusebox.xml file to asign an alias to the circuit. The top the fusebox.xml contains the code.

Listing 13

<circuits>
<circuit alias="main" path="" parent="" />
</circuits>

Since we are creating simple application we do not need to worry about the path and parent attributes and change the alias name to document.

Listing 14

<circuits>
<circuit alias="document" path="" parent="" />
</circuits>

Finally, we need to set the value of defaultFuseaction of fusebox.xml to document.helloworld.

Open the browser and run the application via http://localhost/FB4 or http://localhost/FB4/index.cfm?fuseaction=document.helloworld. If all goes well, you should see "Hello World!!"

Figure 1


View Entire Article

User Comments

Title: Hi Babitha   
Name: Sunitha Ketepally
Date: 2012-02-01 7:55:45 AM
Comment:
Its really very nice article. I am new to Fusebox framework
Title: hello   
Name: madhu
Date: 2009-05-20 7:59:50 AM
Comment:
It's quite interesting
Title: Nice Article   
Name: Chandrakanta Kar
Date: 2008-07-31 3:07:40 AM
Comment:
This is nice article, for the peoples those working with ColdFusion Application and want to implement FuseBox or Upgrade the previous one for the application.

Good Work.
Title: its a good article   
Name: Abhishek Kumar Singh
Date: 2007-12-20 4:33:45 AM
Comment:
Hi Babita,
nice article containing implementation methods for one of the latest requirement in web world. Surely page impersonation will be more secure.
Good article!!!

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-18 1:10:27 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search