Browser preview

Posted: 02-23-2005, 11:04 AM
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?




Reply With Quote

Responses to "Browser preview"

mdarchives
Guest
Posts: n/a
 
Re: Browser preview
Posted: 02-23-2005, 02:51 PM
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.


Reply With Quote
BobJP
Guest
Posts: n/a
 
Re: Browser preview
Posted: 02-23-2005, 02:56 PM
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>

Reply With Quote
bennettian
Guest
Posts: n/a
 
Re: Browser preview
Posted: 02-23-2005, 03:40 PM
Well, thats a big thank you to you guys.
It's been driving me nuts!!
Time for a beer I think

Ian
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How accurate is the overprint preview? rpilato@adobeforums.com Adobe Indesign Macintosh 3 07-06-2006 06:19 PM
Web browser crashes when this happens. Lugez Macromedia Shockwave 0 12-31-2005 05:14 PM
Shared Assets Preview Odge Macromedia Contribute Connection Administrtion 0 05-30-2005 05:41 AM
Duotone preview problem in PDF Johny_Harris@adobeforums.com Adobe Acrobat Macintosh 6 08-05-2004 11:11 AM
Print with Preview - changes color to B&W Jeffrey Hansen Adobe Photoshop 7, CS, CS2 & CS3 0 06-25-2003 05:06 PM