• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

To have the browser request one page but be redirected to another, you can use <cflocation>. <cfheader> allows ColdFusion to create attribute/value pairs in HTTP's response headers. You might practice code reuse for many reasons, and using the <cfinclude> tag is a way to do so in ColdFusion. <cfcontent> sends non-HTML files, either existing or built dynamically, to a browser.

Sample Questions

1:What does the <cflocation> addtoken attribute do?
  1. Forces a page redirect.

  2. Creates SESSION variables.

  3. Appends client identification information to the redirected URL.

  4. Creates identification cookies in the client browser.

2:Which of the following are true about <cfheader>? (select two)
  1. It creates attribute/value pairs in the request header.

  2. It creates attribute/value pairs in the response header.

  3. It can be used to prevent a browser from caching a page.

  4. It can be used to prevent a server from caching a page.

3:The following <cfinclude> tag uses what kind of path?
<cfinclude template="/templates_mapping/header.cfm">

  1. Relative

  2. ColdFusion mapping

4:What is displayed from the following line of code?
ABC<cfcontent type="text/html" reset="Yes">DEF

  1. ABC

  2. ABCDEF

  3. ABEF

  4. DEF


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint