[ACFUG Discuss] Re: REFind not working the way I think it should

2007-01-10 Thread Leif Wells
Nevermind. Man was I doing that wrong. Leif On 1/10/07, Leif Wells <[EMAIL PROTECTED]> wrote: All, I am trying to do a seach on a text file that I've tucked into a variable. There is a word in that file that I know appears three times, but when I use the "returnsubexpressions" parameter, I

[ACFUG Discuss] REFind not working the way I think it should

2007-01-10 Thread Leif Wells
All, I am trying to do a seach on a text file that I've tucked into a variable. There is a word in that file that I know appears three times, but when I use the "returnsubexpressions" parameter, I only get two items in my array, and each of the POS items are the same value. Obviously, I am doing

Re: [ACFUG Discuss] Urgent help needed.. CF custom tag to read tab delimited text file. HOw to add trim functionality??

2007-01-10 Thread Ajas Mohammed
I parse to check data validation and if any required fields are empty. But as I mentioned earlier, the trim or replace or even the validation is temporary since the actual file is stored on the server and the Trim/Replace functions just works on the file by creating Array I think but doesnt ACTUAL

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Charlie Arehart
As an aside and just a bit of trivia (though it may help someone some day), since what you're getting is an object, note that in the list, one of its methods is Tostring (as is almost always true of Java objects). So besides John's suggestion of using the CFML ToString function, you could also have

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
No problem, the encoding is different on the response. We just force it to a string. You can also do the following to reset it into an xml object.. John _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Nunn Sent: Wednesday, January 10, 2007 4:50 PM To: disc

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Thomas Nunn
Sweet, that actually returned to me the error code that was "supposed" to be in xml format. Thanks man! On 1/10/07, John Mason <[EMAIL PROTECTED]> wrote: Actually do this... #toString(cfhttp.FileContent)# -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *O

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Thomas Nunn
object of java.io.ByteArrayOutputStream Methods toString (returns java.lang.String) toString (returns java.lang.String) toString (returns java.lang.String) size (returns int) write (returns void) write (returns void) reset (returns void) toByteArray (returns [B) close (returns void) writeTo (retu

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
Actually do this... #toString(cfhttp.FileContent)# _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mason Sent: Wednesday, January 10, 2007 4:39 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] XMLParse Problems What does this yield.. #cfhttp.FileConte

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
What does this yield.. #cfhttp.FileContent# John _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Nunn Sent: Wednesday, January 10, 2007 4:22 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] XMLParse Problems No. It's supposed to return an xml form

Re: [ACFUG Discuss] Urgent help needed.. CF custom tag to read tab delimited text file. HOw to add trim functionality??

2007-01-10 Thread Teddy Payne
In your custom tag, are you parseing your results? If you are, you can use any number of ways to get rid of spaces. Trim() and REReplace() are just a couple of ways. Teddy On 1/10/07, Ajas Mohammed <[EMAIL PROTECTED]> wrote: oh man... I was being so stupid... Heres what was happening. The c

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Thomas Nunn
No. It's supposed to return an xml formatted string. Would this error occur if I were getting an empty string do you think? On 1/10/07, John Mason <[EMAIL PROTECTED]> wrote: Ok, is the cfhttp calling up an image or something with a particular type of encoding? John [EMAIL PROTECTED]

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Douglas Knudsen
I'm guessing you have, buthave you tried #cfhttp.FileContent# and copy the result into a XML validator? DK On 1/10/07, Thomas Nunn <[EMAIL PROTECTED]> wrote: I just checked it and it is actually uncompressed. Any other ideas? On 1/10/07, John Mason <[EMAIL PROTECTED]> wrote: > > If the

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
Ok, is the cfhttp calling up an image or something with a particular type of encoding? John [EMAIL PROTECTED] _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Nunn Sent: Wednesday, January 10, 2007 3:25 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss]

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Thomas Nunn
I just checked it and it is actually uncompressed. Any other ideas? On 1/10/07, John Mason <[EMAIL PROTECTED]> wrote: If the page is using http compression it will not pull via cfhttp. Sorry but the underlining java can't handle it. It sounds like this might be it, because of the cfhttp erro

Re: [ACFUG Discuss] Urgent help needed.. CF custom tag to read tab delimited text file. HOw to add trim functionality??

2007-01-10 Thread Ajas Mohammed
oh man... I was being so stupid... Heres what was happening. The custom tag was parsing the file etc which is fine but the file is uploaded to a server and then the custom tag does it stuff. So technically the file with spaces is there on the server to be loaded into SQL SERVER. Here is the code

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
If the page is using http compression it will not pull via cfhttp. Sorry but the underlining java can't handle it. It sounds like this might be it, because of the cfhttp error you are seeing. To test it use the compression check tool on this page.. http://www.port80software.com/products/zipenable

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Douglas Knudsen
does the result have any CRs, LFs, or spaces before the xml declaration? DK On 1/10/07, Thomas Nunn <[EMAIL PROTECTED]> wrote: Not that I'm aware of John. I don't have any real control over that website. I'm just trying to pull down information from a customer of ours to display data for a cus

Re: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Thomas Nunn
Not that I'm aware of John. I don't have any real control over that website. I'm just trying to pull down information from a customer of ours to display data for a customer of mine. Can you give me a bit more detail of what it would mean if they were or weren't doing it? On 1/10/07, John Mason

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
Is the page you're trying to hit using http compression? John [EMAIL PROTECTED] _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Nunn Sent: Wednesday, January 10, 2007 11:56 AM To: discussion@acfug.org Subject: [ACFUG Discuss] XMLParse Problems I'm receiving

RE: [ACFUG Discuss] XMLParse Problems

2007-01-10 Thread John Mason
Is the page you're trying to hit using http compression? John [EMAIL PROTECTED] _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Nunn Sent: Wednesday, January 10, 2007 11:56 AM To: discussion@acfug.org Subject: [ACFUG Discuss] XMLParse Problems I'm receiving

[ACFUG Discuss] XMLParse Problems

2007-01-10 Thread Thomas Nunn
I'm receiving an error message when I try try to parse incoming xml data from a cfhttp call to a url. The url is supposed to send back miscellaneous xml formatted data. xmlstuff = XMLParse(cfhttp.FileContent); The error I'm getting is: An error occurred while Parsing an XML document.

[ACFUG Discuss] CF 7.0.2 Security Update

2007-01-10 Thread Teddy Payne
If you have not already seen this from blog entries like Ray Camden or the Security Bulletins page http://www.adobe.com/support/security/#coldfusion , here is a security update released yesterday: http://www.adobe.com/support/security/bulletins/apsb07-02.html -- Adobe Certified ColdFusion MX 7