Allaire ColdFusion

Allaire ColdFusion uses the CFML <CFCONTENT> tag to specify content MIME type. To specify the MIME type for a WAP card, the following syntax is used:

<CFCFONTENT TYPE="text/vnd.wap.wml">

Listing E.2 is the ColdFusion code used to create the output seen in Figure E.1.

Listing E.2 hello.cfm—ColdFusion WML Welcome Card
<CFCONTENT TYPE="text/vnd.wap.wml">

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">

<wml>

   <card title="Welcome">
      <p>
         WAP is cool!
      </p>
   </card>

</wml>

Note

For more information on Allaire ColdFusion visit http://www.allaire.com/products/coldfusion/


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.98.71