Re: setting the default font in FCK editor?

2006-12-15 Thread Mullai Subbiah
Did you have any luck?

Thanks.

Mullai
>In my FCK instance, the default font is displayed as Arial. My client's site
>uses verdana and she sometimes forgets to change the font manually. I'd like
>to know if it's possible to either remove all other fonts from the list or
>force the font selector to verdana.
>
>Anyone have an idea on this?
>
>andy matthews
>web developer
>certified advanced coldfusion programmer
>ICGLink, Inc.
>[EMAIL PROTECTED]
>615.370.1530 x737
>--//->

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264165
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Mysterious Session Timeout

2006-11-17 Thread Mullai Subbiah
I am not sure about the application resetting the value. I have opened three 
sessions under different user names. I have dumped the session variables. Every 
session has a different id, userid etc., Its not overwriting the values for 
each page request. 

Mullai

>Well then look at it this way, you are not passing the tokens with the url.
>You have clients that do not have cookies enabled, and you have switched it
>off on the application.cfm.
>
>It is not timing out, its being reset with new values for each page request
>its that simple.
>
>
>On 11/18/06, Mullai Subbiah <[EMAIL PROTECTED]> wrote:
>>

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260996
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Mysterious Session Timeout

2006-11-17 Thread Mullai Subbiah
Thanks for all your suggestions. I am going to turn the client cookies on and 
check with the client if they could. Then test it again.

Thank you very much.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260988
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Mysterious Session Timeout

2006-11-17 Thread Mullai Subbiah
>What makes you say that it is timming out?

I think because in the application.log there is a message that one of the 
session variables "Element userid is undefined in session". This variable is 
set in the page after the user's login/password is accepted.

This is the code which processes the user login/password and sets all the 
SESSION variables.


SELECT user_name as UserID, Password, user_type
FROM user_dat
WHERE user_name = '#Form.User_name#'



SELECT newsName
FROM newsType
WHERE newsTypeID = #Form.newstype#


















alert("Sorry, Invalid password. Try again.");

self.location="#base_path#/admin/main/index.cfm";
   





alert("User #FORM.USER_name# was not found in 
our database.");
self.location="#base_path#/admin/main/index.cfm";
   





location.href('news.cfm?current_newsTypeID=#form.newsType#');





Thanks.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260982
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Mysterious Session Timeout

2006-11-17 Thread Mullai Subbiah
Thank you. I have taken over this code from another programmer. I guess we set 
client cookies to no 'cause of security concerns. The clients dont have their 
cookies enabled. I am now totally confused on the settings of . 

I am setting CFID to session.cfid and similar for CFToken so in case the user 
decides to close the browser then he will be logged out. So I guess I will have 
to pass the CFID and CFTOken in each of the URL, links etc., But is it possible 
to maintain the session without using cookies.

I am totally confused after reading about this issue for the past two days.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260977
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Mysterious Session Timeout

2006-11-17 Thread Mullai Subbiah
Just to let you know we have four users accessing the server at the same time.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260971
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Mysterious Session Timeout

2006-11-17 Thread Mullai Subbiah
I am using CFMX7. I am getting Session Timeouts when running the application.

I have set the application and session timeout defaults to be 10 hour and 
maximum - 2 days (CF Admin). Within my application.cfm I have set them to be 9 
hours (). I have enabled SessionManagement and disabled 
clientcookies. I still dont understand why I am getting session timeouts. 
Sometimes it happens quite quite often. Sometimes it times out after a long 
period of time but still well before the 9 hour limit. When I tested it with 
like 5 minutes it times out 5 minutes later. 

I hope somebody had experienced some thing like this and could some shed light 
on this issue.

This is my application.cfm code.






 

  


self.location.href='#base_path#/admin/main/index.cfm';

 




Thanks.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260968
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: dynamic anchor in Coldfusion

2006-10-30 Thread Mullai Subbiah
Thanks. 

Sorry I had  

 was a typo.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258496
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: dynamic anchor in Coldfusion

2006-10-30 Thread Mullai Subbiah
> I am trying to use anchor points within a long page (say X). This is 
> to aid the user so that focus returns to the same area when user 
> submits the page. (Until he quits the page he will always return to 
> the same page.) I created anchors at different areas using
>  where "top" will change to middle, end.
> 
> Then I declared in the page X.
> 
> I am using this so that the focus could return the point where the 
> user before he clicked submit. I am sending the anchor points to page 
> X using
>  addToken="no">
> There are no errors but the anchor point do not appear on the url. I 
> am using IE.
> 
> I tried to pass the anchor like  
> But there are no run time errors. If I change the anchor to middle 
> there is no change.
> 
> I hope somebody has some thoughts to shed.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258495
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


dynamic anchor in Coldfusion

2006-10-30 Thread Mullai Subbiah
I am trying to use anchor points within a long page (say X). This is to aid the 
user so that focus returns to the same area when user submits the page. (Until 
he quits the page he will always return to the same page.) I created anchors at 
different areas using
 where "top" will change to middle, end.

Then I declared in the page X.

I am using this so that the focus could return the point where the user before 
he clicked submit. I am sending the anchor points to page X using

There are no errors but the anchor point do not appear on the url. I am using 
IE.

I tried to pass the anchor like http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258478
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: fckEditor and Coldfusion

2006-10-16 Thread Mullai Subbiah
Thank you. I will give it a try.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256980
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: fckEditor and Coldfusion

2006-10-16 Thread Mullai Subbiah
Thank you. I will give it a try.

> I am using a fckEditor within my application to provide the user to 
> enter his information. This was chosen as it has editing options 
> similar to MS-Word. I am trying to set the width and height of this 
> editor based on the user's browser's width and height. Unforutanely I 
> have not been successful doing this. 
> 
> I am using the following syntax
>  template="../../../fckeditor/fckeditor/fckeditor.cfm"
> basePath="../../../fckeditor/fckeditor/"
> instanceName="content_news"
> value='#get_news.content_news#'
> width='javascript:GetBrowserWidth();'
> height='javascript : GetBrowserHeight();'>
> 
> If this template is executed on the server then getting the server 
> height and width would be a problem right? If that's the case is there 
> a work around? I have to make the editor size based on the user's 
> browser window size. 
> 
> I appreciate any thoughts .
> 
> Thanks.
> 
Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256979
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


fckEditor and Coldfusion

2006-10-16 Thread Mullai Subbiah
I am using a fckEditor within my application to provide the user to enter his 
information. This was chosen as it has editing options similar to MS-Word. I am 
trying to set the width and height of this editor based on the user's browser's 
width and height. Unforutanely I have not been successful doing this. 

I am using the following syntax


If this template is executed on the server then getting the server height and 
width would be a problem right? If that's the case is there a work around? I 
have to make the editor size based on the user's browser window size. 

I appreciate any thoughts .

Thanks.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256975
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Cfquery in Javascript

2006-09-20 Thread Mullai Subbiah
Thank you very much for responding.

Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253689
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Cfquery in Javascript

2006-09-14 Thread Mullai Subbiah
Can we use Cfquery within Javascript. I am trying to populate a form based on 
what I do within the Javascript. Once I am done I need to populate the form 
fields by querying the database? Any thoughts will be appreciated

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253220
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Coldfusion and Java

2006-08-28 Thread Mullai Subbiah
Thank you. It worked. So I guess if a string is passed we dont need to worry 
about Javacast. So for my problem I had to specify the type of the arguments 
with two things. Javacast for primitive types and I have to explicitly create a 
Java Date object "abc". Assign the output of cal.getTime() to "abc" and pass 
this argument instead of specifying cal.getTime() in the argument list (Like we 
do in Java).

The coldfusion errors especially in this case was hard to decipher. Does anyone 
happen to know a way to find out what arguments get passed to a Java method. 
Like an "ide" debugger giving more information.

Cheers,
Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251311
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Coldfusion and Java

2006-08-28 Thread Mullai Subbiah
I am trying to call a user-defined Java method. I am using CFMX7 and Java 1.4.2 
One of the method within the class when called gets executed by Coldfusion. But 
another method does not seem to be seen by coldfusion. Every time I try to call 
the method I get a method not found error. The classpath is fine, the method 
exists (can call this method when stand alone), I have recompiled and restarted 
the Coldfusion server hoping that might help but no success. I get a similar 
error when I try to call the calendar set method. 

This is the error I get.


Called from E:\wwwroot\coeweb\apdr\index.cfm: line 57
 
34 : 
35 :
36 :  
37 : 
38 : http://website/apdr/index.cfm?action=search 
Date/Time   28-Aug-06 08:53 AM 
 
Stack Trace (click to expand)  
at 
cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAINT.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36)
 at 
cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_result.cfm:65)
 at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57) 


coldfusion.runtime.java.MethodSelectionException: The selected method 
searchCollectionWithDate was not found.
at 
coldfusion.runtime.java.ObjectHandler.findMethodUsingCFMLRules(ObjectHandler.java:176)
at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:84)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627)
at 
cfsearchresultfunction2ecfc1423953097$funcGETULTRASEEKRESULTSDATECONSTRAINT.runFunction(E:\wwwroot\coeweb\apdr\user\searchresultfunction.cfc:36)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348)
at 
coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:294)
at 
coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:258)
at 
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:370)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:196)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:156)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1587)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:345)
at 
cfsearch_result2ecfm617320438.runPage(E:\wwwroot\coeweb\apdr\user\search_result.cfm:65)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908)
at cfindex2ecfm9115575.runPage(E:\wwwroot\coeweb\apdr\index.cfm:57)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at 
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
at 
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at 
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at 
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Anybody encounter a similar problem? If so it would be helpful to me if you 
could post some comments.

Thankyou.

Cheers,
Mullai 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Coldfusion and XPA

2006-08-27 Thread Mullai Subbiah
I am trying to integrate ultraseek (search engine) within a coldfusion 
application. Has anybody attempted it? I am having problems using the 
daterangequery(XPA) from within coldfusion. I tested the java program. It runs 
and returns the results. But when I call the same function from coldfusion the 
method is not seen by the application.

Any thoughts will be appreciated. I am not sure whether its something to do 
with class loader in coldfusion. I have tried to restart the coldfusion server.

Thanks.

Mullai 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251192
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Java/CF Question

2006-08-16 Thread Mullai Subbiah
I created a Java Class within a package. I included the location in the 
classpath upto "classes" directory using CF Admin

C: -> Java -> classes -> XPA -> bin -> dateRange -> abc.class

In CF I created an object createObject("java", "XPA.bin.dateRange.abc"); No 
class found was thrown. I stripped the package and added abc.class under 
classes and it worked fine. Can anybody please show me how to include the 
package name along with the class name like for e.g java.util.Date

Thank you.

-Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250088
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: trouble with java.util.Date and long datatypes

2006-08-16 Thread Mullai Subbiah
Thank you. I decided to write a java program and call it from coldfusion. But 
coldfusion complains the method does not exist though it exists. If I write the 
functionlity into another method with different signature it does not complain. 
The two method calls
search(String, String);
searchDate(String, String, int); //complains about this method. 

Is CF good in passing integer arguments to Java method. Tried to force it by 
using JavaCast("int", value); // No improvement.

Anyway will keep trying.

-Mullai

>You may want to try pushing the value through a
>java.lang.Long.getLong(string nm), and seeing if that works?
>
>ColdFusion can be funny about large numbers, because it tries ot fit
>them into java.lang.Integers, which can only go so high.
>
>Give that a shot, and let us know.
>
>Mark
>
>On 8/16/06, Mullai Subbiah <[EMAIL PROTECTED]> wrote:
>
>
>-- 
>E: [EMAIL PROTECTED]
>W: www.compoundtheory.com

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250085
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: trouble with java.util.Date and long datatypes

2006-08-15 Thread Mullai Subbiah
>I have the following code to convert timezones.  session.currentTimeZone is
>the logged-in user's timezone and session.defaultTimeZone is the machine's
>timezone.  both are java.util.TimeZone objects.
>
>session.currentTimeZone.getRawOffset()-session.defaultTimeZone.getRawOffset(
>)>
>
>
>
>
>
>getRawOffset() returns a long and date.setTime takes a long.
>
>when I run this code I get 'method selection exception' saying that either
>setTime does not have a signature with the above argument types, or that it
>is overloaded with ambiguous types.  however, java.util.Date only has one
>signature for setTime, that takes a long.  when I dump the value of offset I
>get...
>
>1.05129634481E+012
>
>javacast() right?  when i change the setTime line to
> i get the following error...
>
>"Could not convert the value 1.051296450755E12 to an integer because it
>cannot fit inside an integer. "
>
>I'm confused.  What does converting to an integer have to do with it?  is
>there a problem converting longs between cfmx and java?
>
>thanks,
>Simon


Hi Simon,

   I have similar problem. Were you able to solve it. There are not many 
articles on the web about this specific problem.

Thanks in advance.

Cheers,
Mullai

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249919
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: trouble with java.util.Date and long datatypes

2006-08-15 Thread Mullai Subbiah
>I have the following code to convert timezones.  session.currentTimeZone is
>the logged-in user's timezone and session.defaultTimeZone is the machine's
>timezone.  both are java.util.TimeZone objects.
>
>session.currentTimeZone.getRawOffset()-session.defaultTimeZone.getRawOffset(
>)>
>
>
>
>
>
>getRawOffset() returns a long and date.setTime takes a long.
>
>when I run this code I get 'method selection exception' saying that either
>setTime does not have a signature with the above argument types, or that it
>is overloaded with ambiguous types.  however, java.util.Date only has one
>signature for setTime, that takes a long.  when I dump the value of offset I
>get...
>
>1.05129634481E+012
>
>javacast() right?  when i change the setTime line to
> i get the following error...
>
>"Could not convert the value 1.051296450755E12 to an integer because it
>cannot fit inside an integer. "
>
>I'm confused.  What does converting to an integer have to do with it?  is
>there a problem converting longs between cfmx and java?
>
>thanks,
>Simon

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249918
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4