Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Browser preview

    Can anybody help a complete beginner in ColdFusion MX7.?
    I have downloaded the trial version and have set up my site according to the
    "Getting Started" notes.
    Everytime I try to preview the index.cfm page I get the following error
    message:

    Element LOCALE is undefined in REQUEST.


    The error occurred in C:\Inetpub\wwwroot\CFIDE\gettingstarted\Applicatio n.cfm:
    line 1

    1 : <cfif request.locale neq "jp" and request.locale neq "ja">
    2 : <cfset request.locale = "en">
    3 : </cfif>

    What the hell is it telling me and can I fix it?




    bennettian Guest

  2. Similar Questions and Discussions

    1. PDF Preview in Browser
      I am trying to figure out how I can obtain partial PDF content for browser display via JSP. The idea is that I have an existing directory of PDF...
    2. Preview in browser non publishers
      Hi I have quite a few writers, editors who want to be able to preview the page before they send it for appoval to publishing. The only way is to...
    3. Preview in Browser Error on Mac OS 10.2.8
      Hello: Finally, I completed the dynamic page tutorial. Now trying to view in diff. browsers by doing "Preview in Browser". Then I'm getting...
    4. Movie won't preview in browser!
      Windows XP Dreamweaver Flash 5 In Dreamweaver I have inserted an .swf file into an html file. When I F12(preview in browser) the page comes up...
    5. Preview In Browser
      Hi, I am having a problem previewing my page in a NEW browser window. If IE is not open, it will open a new window, but if a webpage is already...
  3. #2

    Default Re: Browser preview

    Where did you declare Request.Locale to begin with? The error message is telling you that you are referring to a variable that doesn't exist.


    mdarchives Guest

  4. #3

    Default Re: Browser preview

    This is a bug in the Application.cfm file of the Getting Started application.
    You need to replace the 1st 3 lines of the file with this:

    <cfset request.locale = createObject("java",
    "java.util.Locale").getDefault().getLanguage() >
    <cfif request.locale neq "jp" and request.locale neq "ja">
    <cfset request.locale = "en">
    </cfif>

    BobJP Guest

  5. #4

    Default Re: Browser preview

    Well, thats a big thank you to you guys.
    It's been driving me nuts!!
    Time for a beer I think

    Ian
    bennettian Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139