[cfaussie] Re: Java Output streams into CF vars
On 3/29/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > Well I have a java object that doesn't have a toString() :-) > You will find it is inherited from Object :-) Even doing the following wont work as you cannot reduce the visibility of the inherited method from Object. class MyClass { private final String toString() { return "SomeString"; } } Most of the time, you will get the internal representation of the instance ( [EMAIL PROTECTED]) unless you override the method to return something meaningful. Shane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
CF has a function toString(var) that will return the string representation of an object. Java has a obj.toString() method that also will return a string representation of an object. In some (most) cases they will return the same result, but for example a XML object will be different in CF7 (in CF6 that too will be the same) /Max -- Mobile: 0424 77 57 67 Skype: maxnyman MSN Messenger: [EMAIL PROTECTED] On 3/29/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > Steve, > > Not 100% sure I am write on this, but I think it has to do with the java > object itself. I must admit that toString(var) I have not seen, is this a > new object in java 5/6? > > > > On 3/29/07, Steve Onnis <[EMAIL PROTECTED]> wrote: > > > > > > > > While we are on it > > > > Whats the difference between toString(var) and var.toString() ? > > > > i have seen instances where they both yield different results. > > > > Steve > > > > > From: cfaussie@googlegroups.com [mailto: [EMAIL PROTECTED] On > Behalf Of Simon Haddon > > Sent: Thursday, 29 March 2007 6:46 PM > > To: cfaussie@googlegroups.com > > Subject: [cfaussie] Re: Java Output streams into CF vars > > > > > > > > > > The Java 1.4 issue is not a problem cause when you run your code in > development you are still running under the CF jvm which should be 1.4 > anyway. It doesn't matter what eclipse uses unless your creating java > classes that you plan to compile under eclipse. Even then you can compile > then with a different version of the jvm to the ide > > > > Cheers, > > Simon > > > > > > On 29/03/07, Haikal Saadh <[EMAIL PROTECTED] > wrote: > > > > > > Actually, 100% of java objects will have a toString(), as > > > java.lang.Object has toString(). > > > > > > Whether toString() does anything useful is an entirely different matter. > > > > > > Also bear in mind that primitives won't have toString(), which is why I > > > asked if he was dealing with byte[] or a wrapper class. > > > > > > But then again, as I mentioned in my earlier email, it's a little moot > > > for people using java 5, as it has autoboxing. CFers will still have to > > > exercise caution, though, as JDK 1.4 does not have that feature. > > > > > > Andrew Scott wrote: > > > > Duncan, > > > > > > > > LOL, should have thought of that because 98%+ of java objects all have > the > > > > toString(); so you could have done f.Content[1].toString(); > > > > > > > > > > > > > > > > Andrew Scott > > > > Senior Coldfusion Developer > > > > Aegeon Pty. Ltd. > > > > www.aegeon.com.au > > > > Phone: +613 8676 4223 > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > -- > > > Haikal Saadh > > > Applications Programmer > > > ICT Resources, TALSS > > > QUT Kelvin Grove > > > > > > > > > > > > > > > > > -- > > Cheers > > Simon Haddon > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Steve, Not 100% sure I am write on this, but I think it has to do with the java object itself. I must admit that toString(var) I have not seen, is this a new object in java 5/6? On 3/29/07, Steve Onnis <[EMAIL PROTECTED]> wrote: > > While we are on it > > Whats the difference between toString(var) and var.toString() ? > > i have seen instances where they both yield different results. > > Steve > > -- > *From:* cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Simon Haddon > *Sent:* Thursday, 29 March 2007 6:46 PM > *To:* cfaussie@googlegroups.com > *Subject:* [cfaussie] Re: Java Output streams into CF vars > > > The Java 1.4 issue is not a problem cause when you run your code in > development you are still running under the CF jvm which should be 1.4anyway. > It doesn't matter what eclipse uses unless your creating java > classes that you plan to compile under eclipse. Even then you can compile > then with a different version of the jvm to the ide > > Cheers, > Simon > > On 29/03/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > > > > Actually, 100% of java objects will have a toString(), as > > java.lang.Object has toString(). > > > > Whether toString() does anything useful is an entirely different matter. > > > > Also bear in mind that primitives won't have toString(), which is why I > > asked if he was dealing with byte[] or a wrapper class. > > > > But then again, as I mentioned in my earlier email, it's a little moot > > for people using java 5, as it has autoboxing. CFers will still have to > > exercise caution, though, as JDK 1.4 does not have that feature. > > > > Andrew Scott wrote: > > > Duncan, > > > > > > LOL, should have thought of that because 98%+ of java objects all have > > the > > > toString(); so you could have done f.Content[1].toString(); > > > > > > > > > > > > Andrew Scott > > > Senior Coldfusion Developer > > > Aegeon Pty. Ltd. > > > www.aegeon.com.au > > > Phone: +613 8676 4223 > > > Mobile: 0404 998 273 > > > > > > > > > > > > -- > > Haikal Saadh > > Applications Programmer > > ICT Resources, TALSS > > QUT Kelvin Grove > > > > > > > > > -- > Cheers > Simon Haddon > > > -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
While we are on it Whats the difference between toString(var) and var.toString() ? i have seen instances where they both yield different results. Steve _ From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Haddon Sent: Thursday, 29 March 2007 6:46 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars The Java 1.4 issue is not a problem cause when you run your code in development you are still running under the CF jvm which should be 1.4 anyway. It doesn't matter what eclipse uses unless your creating java classes that you plan to compile under eclipse. Even then you can compile then with a different version of the jvm to the ide Cheers, Simon On 29/03/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: Actually, 100% of java objects will have a toString(), as java.lang.Object has toString(). Whether toString() does anything useful is an entirely different matter. Also bear in mind that primitives won't have toString(), which is why I asked if he was dealing with byte[] or a wrapper class. But then again, as I mentioned in my earlier email, it's a little moot for people using java 5, as it has autoboxing. CFers will still have to exercise caution, though, as JDK 1.4 does not have that feature. Andrew Scott wrote: > Duncan, > > LOL, should have thought of that because 98%+ of java objects all have the > toString(); so you could have done f.Content[1].toString(); > > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone: +613 8676 4223 > Mobile: 0404 998 273 > > -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove -- Cheers Simon Haddon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
The Java 1.4 issue is not a problem cause when you run your code in development you are still running under the CF jvm which should be 1.4anyway. It doesn't matter what eclipse uses unless your creating java classes that you plan to compile under eclipse. Even then you can compile then with a different version of the jvm to the ide Cheers, Simon On 29/03/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > Actually, 100% of java objects will have a toString(), as > java.lang.Object has toString(). > > Whether toString() does anything useful is an entirely different matter. > > Also bear in mind that primitives won't have toString(), which is why I > asked if he was dealing with byte[] or a wrapper class. > > But then again, as I mentioned in my earlier email, it's a little moot > for people using java 5, as it has autoboxing. CFers will still have to > exercise caution, though, as JDK 1.4 does not have that feature. > > Andrew Scott wrote: > > Duncan, > > > > LOL, should have thought of that because 98%+ of java objects all have > the > > toString(); so you could have done f.Content[1].toString(); > > > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > -- > Haikal Saadh > Applications Programmer > ICT Resources, TALSS > QUT Kelvin Grove > > > > > -- Cheers Simon Haddon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Well I have a java object that doesn't have a toString() :-) On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > Actually, 100% of java objects will have a toString(), as > java.lang.Object has toString(). > > Whether toString() does anything useful is an entirely different matter. > > Also bear in mind that primitives won't have toString(), which is why I > asked if he was dealing with byte[] or a wrapper class. > > But then again, as I mentioned in my earlier email, it's a little moot > for people using java 5, as it has autoboxing. CFers will still have to > exercise caution, though, as JDK 1.4 does not have that feature. > > Andrew Scott wrote: > > Duncan, > > > > LOL, should have thought of that because 98%+ of java objects all have > the > > toString(); so you could have done f.Content[1].toString(); > > > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > -- > Haikal Saadh > Applications Programmer > ICT Resources, TALSS > QUT Kelvin Grove > > > > > -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Actually, 100% of java objects will have a toString(), as java.lang.Object has toString(). Whether toString() does anything useful is an entirely different matter. Also bear in mind that primitives won't have toString(), which is why I asked if he was dealing with byte[] or a wrapper class. But then again, as I mentioned in my earlier email, it's a little moot for people using java 5, as it has autoboxing. CFers will still have to exercise caution, though, as JDK 1.4 does not have that feature. Andrew Scott wrote: > Duncan, > > LOL, should have thought of that because 98%+ of java objects all have the > toString(); so you could have done f.Content[1].toString(); > > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone: +613 8676 4223 > Mobile: 0404 998 273 > > -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Duncan, LOL, should have thought of that because 98%+ of java objects all have the toString(); so you could have done f.Content[1].toString(); Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Thursday, 29 March 2007 12:23 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars I have just worked it out - you can do this in Java - ",">")> #stringy Job done - thats how to get it into a CF Variable. On 3/29/07, Duncan <[EMAIL PROTECTED]> wrote: > @Andrew - this doesnt work, just tried it and it outputs to the > browser where the pageOut.write is. It does not put it into the > variable. test is created and set, but has a length of 0 and no value. > > @Dale - would love to convert it out of Java ByteArray but I dont know > how to - any hints or pointers gratefully received. > > @Haikal - Good idea, however CF cant perform this on a bytearray, the > error is "ByteArray objects cannot be converted to strings." > > On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > > Shouldn't you have > > > > pageOut.write(replaceNoCase()) > > > > instead of > > replaceNoCase(pageOut.write() ) > > > > > > > > Duncan wrote: > > > Not being able to push this data into a CF var is now becoming a real > > > problem - I cant do anything to the output. For example I need to > > > replace < and > with < and > > > > > > > Here is an example: > > > > > > > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > > > This returns the content of a file at a revision number in an SVN > > > repository as a Java bytestream. > > > > > > the problem here is that the Replacenocase doesnt do anything. the end > > > result in the source is still < and > NOT < and > > > > > > > If anyone can help me out here it would be HUGE! > > > > > > Thanks > > > > > > Duncan > > > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > > > >> @charlie - found this on Andrews site: > > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > >> > > >> Now I have this: > > >> > > >> sb is: > > >> > >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > > >> object containing the c current repository & methods available. > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> No such file or revision > > >> > > >> > > >> > > >> Interestingly I can now wrap things around this (like a textarea). So > > >> this is a great improvement over what I had before that reset the > > >> stream and cleared everything else from the screen. > > >> > > >> > > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > >> > > >>> Can you send me the code in question offlist I'll have a look at later > > >>> tonight if you like, I am not a java guru but know enough to get by most of > > >>> that POC was help from Mark Mandel and another person who's name escapes me > > >>> at the moment. > > >>> > > >>> But what I do understand is that the pageOut.Write in your code is suppose > > >>> to turn it into a string or char output, and I guess looking at how it fits > > >>> in your scenario might help me a bit more. > > >>> > > >>> Sorry couldn't be any more helpful there. > > >>> > > >>> > > >>> Andrew Scott > > >>> Senior Coldfusion Developer > > >>> Aegeon Pty. Ltd. > > >>> www.aegeon.com.au > > >>> Phone:+613 8676 4223 > > >>> Mobile: 0404 998 273 > > >>> > > >>> > > >>> > > >>> -Original Message- > > >>>
[cfaussie] Re: Java Output streams into CF vars
d)> i.e. the > > > > >> object containing the c current repository & methods > available. > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> getPageContext().getResponse().getOutputStream()> > > > > >> len(f.Content[1]))> > > > > >> > > > > >> No such file or revision > > > > >> > > > > >> > > > > >> > > > > >> Interestingly I can now wrap things around this (like a > textarea). So > > > > >> this is a great improvement over what I had before that > reset the > > > > >> stream and cleared everything else from the screen. > > > > >> > > > > >> > > > > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > > >> > > > > >>> Can you send me the code in question offlist I'll have a > look at later > > > > >>> tonight if you like, I am not a java guru but know > enough to get by most of > > > > >>> that POC was help from Mark Mandel and another person > who's name escapes me > > > > >>> at the moment. > > > > >>> > > > > >>> But what I do understand is that the pageOut.Write in > your code is suppose > > > > >>> to turn it into a string or char output, and I guess > looking at how it fits > > > > >>> in your scenario might help me a bit more. > > > > >>> > > > > >>> Sorry couldn't be any more helpful there. > > > > >>> > > > > >>> > > > > >>> Andrew Scott > > > > >>> Senior Coldfusion Developer > > > > >>> Aegeon Pty. Ltd. > > > > >>> www.aegeon.com.au <http://www.aegeon.com.au> > > > > >>> Phone:+613 8676 4223 > > > > >>> Mobile: 0404 998 273 > > > > >>> > > > > >>> > > > > >>> > > > > >>> -Original Message- > > > > >>> From: cfaussie@googlegroups.com > <mailto:cfaussie@googlegroups.com> > [mailto:cfaussie@googlegroups.com > <mailto:cfaussie@googlegroups.com>] On Behalf > > > > >>> Of Duncan > > > > >>> Sent: Wednesday, 7 March 2007 3:56 PM > > > > >>> To: cfaussie@googlegroups.com > <mailto:cfaussie@googlegroups.com> > > > > >>> Subject: [cfaussie] Re: Java Output streams into CF vars > > > > >>> > > > > >>> > > > > >>> Thanks Andrew, I can see what this does, but I dont > understand it all > > > > >>> enough (and the differences between your code and mine) > to mash it > > > > >>> into what I need. > > > > >>> > > > > >>> So I have managed to get to this point: > > > > >>> > > > > >>> pageOut = getPageContext().getResponse().getOutputStream(); > > > > >>> out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > > > >>> > > > > >>> however this prints the content of the field at the > point where this > > > > >>> line lives in the page. It doesnt assign it to the > variable out. > > > > >>> > > > > >>> At least now its not resetting the output and its > carrying through to > > > > >>> include the header and footer. > > > > >>> > > > > >>> How is it that this is not putting the stream into the > out variable? > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >> -- > > > > >> Duncan I Loxton > > > > >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
You could probably just do a ".toString()" on the on the resultant byte array couldn't you? On 29/03/07, Duncan <[EMAIL PROTECTED]> wrote: > > > Haikal - Bingo! I got it just the same time there. I am using > www.svnkit.com > > > > On 3/29/07, Duncan <[EMAIL PROTECTED]> wrote: > > I have just worked it out - you can do this in Java - > > > > [1])> > > > ReplacenoCase(ReplacenoCase(Stringy,"<","<","ALL"),">",">")> > > > > #stringy > > > > Job done - thats how to get it into a CF Variable. > > > > On 3/29/07, Duncan <[EMAIL PROTECTED]> wrote: > > > @Andrew - this doesnt work, just tried it and it outputs to the > > > browser where the pageOut.write is. It does not put it into the > > > variable. test is created and set, but has a length of 0 and no value. > > > > > > @Dale - would love to convert it out of Java ByteArray but I dont know > > > how to - any hints or pointers gratefully received. > > > > > > @Haikal - Good idea, however CF cant perform this on a bytearray, the > > > error is "ByteArray objects cannot be converted to strings." > > > > > > On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > > > > > > Shouldn't you have > > > > > > > > pageOut.write(replaceNoCase()) > > > > > > > > instead of > > > > replaceNoCase(pageOut.write() ) > > > > > > > > > > > > > > > > Duncan wrote: > > > > > Not being able to push this data into a CF var is now becoming a > real > > > > > problem - I cant do anything to the output. For example I need to > > > > > replace < and > with < and > > > > > > > > > > > Here is an example: > > > > > > > > > > ").init(application.SVN > > > > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > > > > > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > > > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > > > > > > > This returns the content of a file at a revision number in an SVN > > > > > repository as a Java bytestream. > > > > > > > > > > the problem here is that the Replacenocase doesnt do anything. the > end > > > > > result in the source is still < and > NOT < and > > > > > > > > > > > If anyone can help me out here it would be HUGE! > > > > > > > > > > Thanks > > > > > > > > > > Duncan > > > > > > > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > > > > > > > >> @charlie - found this on Andrews site: > > > > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > > > >> > > > > >> Now I have this: > > > > >> > > > > >> sb is: > > > > >> ").init(application.SVN > > > > >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. > the > > > > >> object containing the c current repository & methods available. > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> getPageContext().getResponse().getOutputStream()> > > > > >> [1]))> > > > > >> > > > > >> No such file or revision > > > > >> > > > > >> > > > > >> > > > > >> Interestingly I can now wrap things around this (like a > textarea). So > > > > >> this is a great improvement over what I had before that reset the > > > > >> stream and cleared everything else from the screen. > > > > >> > > > > >> > > > > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > >> > > > > >>> Can you send me the code in question offlist I'll have a look at > later > > > > >>> tonight if you like, I am not a java guru but know enough to get > by most of >
[cfaussie] Re: Java Output streams into CF vars
Haikal - Bingo! I got it just the same time there. I am using www.svnkit.com On 3/29/07, Duncan <[EMAIL PROTECTED]> wrote: > I have just worked it out - you can do this in Java - > > > ReplacenoCase(ReplacenoCase(Stringy,"<","<","ALL"),">",">")> > > #stringy > > Job done - thats how to get it into a CF Variable. > > On 3/29/07, Duncan <[EMAIL PROTECTED]> wrote: > > @Andrew - this doesnt work, just tried it and it outputs to the > > browser where the pageOut.write is. It does not put it into the > > variable. test is created and set, but has a length of 0 and no value. > > > > @Dale - would love to convert it out of Java ByteArray but I dont know > > how to - any hints or pointers gratefully received. > > > > @Haikal - Good idea, however CF cant perform this on a bytearray, the > > error is "ByteArray objects cannot be converted to strings." > > > > On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > > > > Shouldn't you have > > > > > > pageOut.write(replaceNoCase()) > > > > > > instead of > > > replaceNoCase(pageOut.write() ) > > > > > > > > > > > > Duncan wrote: > > > > Not being able to push this data into a CF var is now becoming a real > > > > problem - I cant do anything to the output. For example I need to > > > > replace < and > with < and > > > > > > > > > Here is an example: > > > > > > > > > > > CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > > > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > > > > > This returns the content of a file at a revision number in an SVN > > > > repository as a Java bytestream. > > > > > > > > the problem here is that the Replacenocase doesnt do anything. the end > > > > result in the source is still < and > NOT < and > > > > > > > > > If anyone can help me out here it would be HUGE! > > > > > > > > Thanks > > > > > > > > Duncan > > > > > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > > > > > >> @charlie - found this on Andrews site: > > > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > > >> > > > >> Now I have this: > > > >> > > > >> sb is: > > > >> > > >> CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > > > >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > > > >> object containing the c current repository & methods available. > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> No such file or revision > > > >> > > > >> > > > >> > > > >> Interestingly I can now wrap things around this (like a textarea). So > > > >> this is a great improvement over what I had before that reset the > > > >> stream and cleared everything else from the screen. > > > >> > > > >> > > > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > >> > > > >>> Can you send me the code in question offlist I'll have a look at later > > > >>> tonight if you like, I am not a java guru but know enough to get by > > > >>> most of > > > >>> that POC was help from Mark Mandel and another person who's name > > > >>> escapes me > > > >>> at the moment. > > > >>> > > > >>> But what I do understand is that the pageOut.Write in your code is > > > >>> suppose > > > >>> to turn it into a string or char output, and I guess looking at how > > > >>> it fits > > > >>> in your scenario might help me a bit more. > >
[cfaussie] Re: Java Output streams into CF vars
I have just worked it out - you can do this in Java - ",">")> #stringy Job done - thats how to get it into a CF Variable. On 3/29/07, Duncan <[EMAIL PROTECTED]> wrote: > @Andrew - this doesnt work, just tried it and it outputs to the > browser where the pageOut.write is. It does not put it into the > variable. test is created and set, but has a length of 0 and no value. > > @Dale - would love to convert it out of Java ByteArray but I dont know > how to - any hints or pointers gratefully received. > > @Haikal - Good idea, however CF cant perform this on a bytearray, the > error is "ByteArray objects cannot be converted to strings." > > On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > > > Shouldn't you have > > > > pageOut.write(replaceNoCase()) > > > > instead of > > replaceNoCase(pageOut.write() ) > > > > > > > > Duncan wrote: > > > Not being able to push this data into a CF var is now becoming a real > > > problem - I cant do anything to the output. For example I need to > > > replace < and > with < and > > > > > > > Here is an example: > > > > > > > > CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > > > This returns the content of a file at a revision number in an SVN > > > repository as a Java bytestream. > > > > > > the problem here is that the Replacenocase doesnt do anything. the end > > > result in the source is still < and > NOT < and > > > > > > > If anyone can help me out here it would be HUGE! > > > > > > Thanks > > > > > > Duncan > > > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > > > >> @charlie - found this on Andrews site: > > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > >> > > >> Now I have this: > > >> > > >> sb is: > > >> > >> CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > > >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > > >> object containing the c current repository & methods available. > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> No such file or revision > > >> > > >> > > >> > > >> Interestingly I can now wrap things around this (like a textarea). So > > >> this is a great improvement over what I had before that reset the > > >> stream and cleared everything else from the screen. > > >> > > >> > > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > >> > > >>> Can you send me the code in question offlist I'll have a look at later > > >>> tonight if you like, I am not a java guru but know enough to get by > > >>> most of > > >>> that POC was help from Mark Mandel and another person who's name > > >>> escapes me > > >>> at the moment. > > >>> > > >>> But what I do understand is that the pageOut.Write in your code is > > >>> suppose > > >>> to turn it into a string or char output, and I guess looking at how it > > >>> fits > > >>> in your scenario might help me a bit more. > > >>> > > >>> Sorry couldn't be any more helpful there. > > >>> > > >>> > > >>> Andrew Scott > > >>> Senior Coldfusion Developer > > >>> Aegeon Pty. Ltd. > > >>> www.aegeon.com.au > > >>> Phone:+613 8676 4223 > > >>> Mobile: 0404 998 273 > > >>> > > >>> > > >>> > > >>> -Original Message- > > >>> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > >>> Of Duncan > > >>> Sent: Wednesday, 7 March 2007 3:56 PM > > >>> To: cfaussie@go
[cfaussie] Re: Java Output streams into CF vars
Is the javadoc for your svn classes available online? osborne.org seems to be squatted on. Duncan wrote: > @Andrew - this doesnt work, just tried it and it outputs to the > browser where the pageOut.write is. It does not put it into the > variable. test is created and set, but has a length of 0 and no value. > > @Dale - would love to convert it out of Java ByteArray but I dont know > how to - any hints or pointers gratefully received. > Not sure what a ByteArray is, but it if's a byte array (i.e., byte[]), you can convert it to a string this String foo = new String(someBytes);. So maybe createObject("java","java.lang.String").init(someBytes) might work. > @Haikal - Good idea, however CF cant perform this on a bytearray, the > error is "ByteArray objects cannot be converted to strings." > > On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > >> Shouldn't you have >> >> pageOut.write(replaceNoCase()) >> >> instead of >> replaceNoCase(pageOut.write() ) >> >> >> >> Duncan wrote: >> >>> Not being able to push this data into a CF var is now becoming a real >>> problem - I cant do anything to the output. For example I need to >>> replace < and > with < and > >>> >>> Here is an example: >>> >>> >> CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN >>> & "/" & client.safe,application.svnusr,application.svnpwd)> >>> >>> >>> #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, >>> len(f.Content[1])),"<","<","ALL"),">",">")# >>> >>> This returns the content of a file at a revision number in an SVN >>> repository as a Java bytestream. >>> >>> the problem here is that the Replacenocase doesnt do anything. the end >>> result in the source is still < and > NOT < and > >>> >>> If anyone can help me out here it would be HUGE! >>> >>> Thanks >>> >>> Duncan >>> >>> On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: >>> >>> >>>> @charlie - found this on Andrews site: >>>> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept >>>> >>>> Now I have this: >>>> >>>> sb is: >>>> >>> CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN >>>> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the >>>> object containing the c current repository & methods available. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> No such file or revision >>>> >>>> >>>> >>>> Interestingly I can now wrap things around this (like a textarea). So >>>> this is a great improvement over what I had before that reset the >>>> stream and cleared everything else from the screen. >>>> >>>> >>>> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: >>>> >>>> >>>>> Can you send me the code in question offlist I'll have a look at later >>>>> tonight if you like, I am not a java guru but know enough to get by most >>>>> of >>>>> that POC was help from Mark Mandel and another person who's name escapes >>>>> me >>>>> at the moment. >>>>> >>>>> But what I do understand is that the pageOut.Write in your code is suppose >>>>> to turn it into a string or char output, and I guess looking at how it >>>>> fits >>>>> in your scenario might help me a bit more. >>>>> >>>>> Sorry couldn't be any more helpful there. >>>>> >>>>> >>>>> Andrew Scott >>>>> Senior Coldfusion Developer >>>>> Aegeon Pty. Ltd. >>>>> www.aegeon.com.au >>>>> Phone:+613 8676 4223 >>>>> Mobile: 0404 998 273 >>>>> >>>>> >>>>> >>>>> -Original Message- >>>>> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf >>>>> Of Duncan >>>>> Sent: Wednesday, 7 March 2007 3:56 PM >>>>> To: cf
[cfaussie] Re: Java Output streams into CF vars
Something like this should do it. binaryDecode(arguments.data, "Base64") where arguments.data is the byteArray Regards Dale Fraser http://dale.fraser.id.au/blog -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Thursday, 29 March 2007 11:35 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars @Andrew - this doesnt work, just tried it and it outputs to the browser where the pageOut.write is. It does not put it into the variable. test is created and set, but has a length of 0 and no value. @Dale - would love to convert it out of Java ByteArray but I dont know how to - any hints or pointers gratefully received. @Haikal - Good idea, however CF cant perform this on a bytearray, the error is "ByteArray objects cannot be converted to strings." On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > Shouldn't you have > > pageOut.write(replaceNoCase()) > > instead of > replaceNoCase(pageOut.write() ) > > > > Duncan wrote: > > Not being able to push this data into a CF var is now becoming a real > > problem - I cant do anything to the output. For example I need to > > replace < and > with < and > > > > > Here is an example: > > > > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > This returns the content of a file at a revision number in an SVN > > repository as a Java bytestream. > > > > the problem here is that the Replacenocase doesnt do anything. the end > > result in the source is still < and > NOT < and > > > > > If anyone can help me out here it would be HUGE! > > > > Thanks > > > > Duncan > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > >> @charlie - found this on Andrews site: > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > >> > >> Now I have this: > >> > >> sb is: > >> >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > >> object containing the c current repository & methods available. > >> > >> > >> > >> > >> > >> > >> > >> > >> No such file or revision > >> > >> > >> > >> Interestingly I can now wrap things around this (like a textarea). So > >> this is a great improvement over what I had before that reset the > >> stream and cleared everything else from the screen. > >> > >> > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > >> > >>> Can you send me the code in question offlist I'll have a look at later > >>> tonight if you like, I am not a java guru but know enough to get by most of > >>> that POC was help from Mark Mandel and another person who's name escapes me > >>> at the moment. > >>> > >>> But what I do understand is that the pageOut.Write in your code is suppose > >>> to turn it into a string or char output, and I guess looking at how it fits > >>> in your scenario might help me a bit more. > >>> > >>> Sorry couldn't be any more helpful there. > >>> > >>> > >>> Andrew Scott > >>> Senior Coldfusion Developer > >>> Aegeon Pty. Ltd. > >>> www.aegeon.com.au > >>> Phone:+613 8676 4223 > >>> Mobile: 0404 998 273 > >>> > >>> > >>> > >>> -Original Message- > >>> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > >>> Of Duncan > >>> Sent: Wednesday, 7 March 2007 3:56 PM > >>> To: cfaussie@googlegroups.com > >>> Subject: [cfaussie] Re: Java Output streams into CF vars > >>> > >>> > >>> Thanks Andrew, I can see what this does, but I dont understand it all > >>> enough (and the differences between your code and mine) to mash it > >>> into what I need. > >>> > >>> So I have managed to get to this point: > >>> > >>> pageOut = getPageContext().getResponse().getOutputStream(); > >>> out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > >>> > >>> however this prints the content of the field at the point where this > >>> line lives in the page. It doesnt assign it to the variable out. > >>> > >>> At least now its not resetting the output and its carrying through to > >>> include the header and footer. > >>> > >>> How is it that this is not putting the stream into the out variable? > >>> > >>> > >>> > >>> > >> -- > >> Duncan I Loxton > >> [EMAIL PROTECTED] > >> > >> > > > > > > > > > -- > Haikal Saadh > Applications Programmer > ICT Resources, TALSS > QUT Kelvin Grove > > > > > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Duncan, That's what this is for I believe .pageOut.getBytes() Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Thursday, 29 March 2007 11:35 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars @Andrew - this doesnt work, just tried it and it outputs to the browser where the pageOut.write is. It does not put it into the variable. test is created and set, but has a length of 0 and no value. @Dale - would love to convert it out of Java ByteArray but I dont know how to - any hints or pointers gratefully received. @Haikal - Good idea, however CF cant perform this on a bytearray, the error is "ByteArray objects cannot be converted to strings." On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > Shouldn't you have > > pageOut.write(replaceNoCase()) > > instead of > replaceNoCase(pageOut.write() ) > > > > Duncan wrote: > > Not being able to push this data into a CF var is now becoming a real > > problem - I cant do anything to the output. For example I need to > > replace < and > with < and > > > > > Here is an example: > > > > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > This returns the content of a file at a revision number in an SVN > > repository as a Java bytestream. > > > > the problem here is that the Replacenocase doesnt do anything. the end > > result in the source is still < and > NOT < and > > > > > If anyone can help me out here it would be HUGE! > > > > Thanks > > > > Duncan > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > >> @charlie - found this on Andrews site: > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > >> > >> Now I have this: > >> > >> sb is: > >> >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > >> object containing the c current repository & methods available. > >> > >> > >> > >> > >> > >> > >> > >> > >> No such file or revision > >> > >> > >> > >> Interestingly I can now wrap things around this (like a textarea). So > >> this is a great improvement over what I had before that reset the > >> stream and cleared everything else from the screen. > >> > >> > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > >> > >>> Can you send me the code in question offlist I'll have a look at later > >>> tonight if you like, I am not a java guru but know enough to get by most of > >>> that POC was help from Mark Mandel and another person who's name escapes me > >>> at the moment. > >>> > >>> But what I do understand is that the pageOut.Write in your code is suppose > >>> to turn it into a string or char output, and I guess looking at how it fits > >>> in your scenario might help me a bit more. > >>> > >>> Sorry couldn't be any more helpful there. > >>> > >>> > >>> Andrew Scott > >>> Senior Coldfusion Developer > >>> Aegeon Pty. Ltd. > >>> www.aegeon.com.au > >>> Phone:+613 8676 4223 > >>> Mobile: 0404 998 273 > >>> > >>> > >>> > >>> -Original Message- > >>> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > >>> Of Duncan > >>> Sent: Wednesday, 7 March 2007 3:56 PM > >>> To: cfaussie@googlegroups.com > >>> Subject: [cfaussie] Re: Java Output streams into CF vars > >>> > >>> > >>> Thanks Andrew, I can see what this does, but I dont understand it all > >>> enough (and the differences between your code and mine) to mash it > >>> into what I need. > >>> > >>> So I have managed to get to this point: > >>> > >>> pageOut = getPageContext().getResponse().getOutputStream(); > >>> out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > >>> > >>> however this prints the content of the field at the point where this > >>> line lives in the page. It doesnt assign it to the variable out. > >>> > >>> At least now its not resetting the output and its carrying through to > >>> include the header and footer. > >>> > >>> How is it that this is not putting the stream into the out variable? > >>> > >>> > >>> > >>> > >> -- > >> Duncan I Loxton > >> [EMAIL PROTECTED] > >> > >> > > > > > > > > > -- > Haikal Saadh > Applications Programmer > ICT Resources, TALSS > QUT Kelvin Grove > > > > > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
@Andrew - this doesnt work, just tried it and it outputs to the browser where the pageOut.write is. It does not put it into the variable. test is created and set, but has a length of 0 and no value. @Dale - would love to convert it out of Java ByteArray but I dont know how to - any hints or pointers gratefully received. @Haikal - Good idea, however CF cant perform this on a bytearray, the error is "ByteArray objects cannot be converted to strings." On 3/29/07, Haikal Saadh <[EMAIL PROTECTED]> wrote: > > Shouldn't you have > > pageOut.write(replaceNoCase()) > > instead of > replaceNoCase(pageOut.write() ) > > > > Duncan wrote: > > Not being able to push this data into a CF var is now becoming a real > > problem - I cant do anything to the output. For example I need to > > replace < and > with < and > > > > > Here is an example: > > > > > CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > > len(f.Content[1])),"<","<","ALL"),">",">")# > > > > This returns the content of a file at a revision number in an SVN > > repository as a Java bytestream. > > > > the problem here is that the Replacenocase doesnt do anything. the end > > result in the source is still < and > NOT < and > > > > > If anyone can help me out here it would be HUGE! > > > > Thanks > > > > Duncan > > > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > > > >> @charlie - found this on Andrews site: > >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > >> > >> Now I have this: > >> > >> sb is: > >> >> CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > >> object containing the c current repository & methods available. > >> > >> > >> > >> > >> > >> > >> > >> > >> No such file or revision > >> > >> > >> > >> Interestingly I can now wrap things around this (like a textarea). So > >> this is a great improvement over what I had before that reset the > >> stream and cleared everything else from the screen. > >> > >> > >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > >> > >>> Can you send me the code in question offlist I'll have a look at later > >>> tonight if you like, I am not a java guru but know enough to get by most > >>> of > >>> that POC was help from Mark Mandel and another person who's name escapes > >>> me > >>> at the moment. > >>> > >>> But what I do understand is that the pageOut.Write in your code is suppose > >>> to turn it into a string or char output, and I guess looking at how it > >>> fits > >>> in your scenario might help me a bit more. > >>> > >>> Sorry couldn't be any more helpful there. > >>> > >>> > >>> Andrew Scott > >>> Senior Coldfusion Developer > >>> Aegeon Pty. Ltd. > >>> www.aegeon.com.au > >>> Phone:+613 8676 4223 > >>> Mobile: 0404 998 273 > >>> > >>> > >>> > >>> -Original Message- > >>> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > >>> Of Duncan > >>> Sent: Wednesday, 7 March 2007 3:56 PM > >>> To: cfaussie@googlegroups.com > >>> Subject: [cfaussie] Re: Java Output streams into CF vars > >>> > >>> > >>> Thanks Andrew, I can see what this does, but I dont understand it all > >>> enough (and the differences between your code and mine) to mash it > >>> into what I need. > >>> > >>> So I have managed to get to this point: > >>> > >>> pageOut = getPageContext().getResponse().getOutputStream(); > >>> out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > >>> > >>> however this prints the content of the field at the point where this > >>> line lives in the page. It doesnt assign it to the variable out. > >>> > >>> At least now its not resetting the output and its carrying through to > >>> include the header and footer. > >>> > >>> How is it that this is not putting the stream into the out variable? > >>> > >>> > >>> > >>> > >> -- > >> Duncan I Loxton > >> [EMAIL PROTECTED] > >> > >> > > > > > > > > > -- > Haikal Saadh > Applications Programmer > ICT Resources, TALSS > QUT Kelvin Grove > > > > > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Shouldn't you have pageOut.write(replaceNoCase()) instead of replaceNoCase(pageOut.write() ) Duncan wrote: > Not being able to push this data into a CF var is now becoming a real > problem - I cant do anything to the output. For example I need to > replace < and > with < and > > > Here is an example: > > CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > & "/" & client.safe,application.svnusr,application.svnpwd)> > > > #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, > len(f.Content[1])),"<","<","ALL"),">",">")# > > This returns the content of a file at a revision number in an SVN > repository as a Java bytestream. > > the problem here is that the Replacenocase doesnt do anything. the end > result in the source is still < and > NOT < and > > > If anyone can help me out here it would be HUGE! > > Thanks > > Duncan > > On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > >> @charlie - found this on Andrews site: >> http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept >> >> Now I have this: >> >> sb is: >> > CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN >> & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the >> object containing the c current repository & methods available. >> >> >> >> >> >> >> >> >> No such file or revision >> >> >> >> Interestingly I can now wrap things around this (like a textarea). So >> this is a great improvement over what I had before that reset the >> stream and cleared everything else from the screen. >> >> >> On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: >> >>> Can you send me the code in question offlist I'll have a look at later >>> tonight if you like, I am not a java guru but know enough to get by most of >>> that POC was help from Mark Mandel and another person who's name escapes me >>> at the moment. >>> >>> But what I do understand is that the pageOut.Write in your code is suppose >>> to turn it into a string or char output, and I guess looking at how it fits >>> in your scenario might help me a bit more. >>> >>> Sorry couldn't be any more helpful there. >>> >>> >>> Andrew Scott >>> Senior Coldfusion Developer >>> Aegeon Pty. Ltd. >>> www.aegeon.com.au >>> Phone:+613 8676 4223 >>> Mobile: 0404 998 273 >>> >>> >>> >>> -Original Message- >>> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf >>> Of Duncan >>> Sent: Wednesday, 7 March 2007 3:56 PM >>> To: cfaussie@googlegroups.com >>> Subject: [cfaussie] Re: Java Output streams into CF vars >>> >>> >>> Thanks Andrew, I can see what this does, but I dont understand it all >>> enough (and the differences between your code and mine) to mash it >>> into what I need. >>> >>> So I have managed to get to this point: >>> >>> pageOut = getPageContext().getResponse().getOutputStream(); >>> out = pageOut.write(f.Content[1], 0, len(f.Content[1])); >>> >>> however this prints the content of the field at the point where this >>> line lives in the page. It doesnt assign it to the variable out. >>> >>> At least now its not resetting the output and its carrying through to >>> include the header and footer. >>> >>> How is it that this is not putting the stream into the out variable? >>> >>> >>> >>> >> -- >> Duncan I Loxton >> [EMAIL PROTECTED] >> >> > > > -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Why can't you just convert the byte stream back and forwarth. I'm not sure I understand the problem, but we do something similar and have it working, perhaps explain further what problem you are having. Regards Dale Fraser http://dale.fraser.id.au/blog -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Thursday, 29 March 2007 11:00 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars Not being able to push this data into a CF var is now becoming a real problem - I cant do anything to the output. For example I need to replace < and > with < and > Here is an example: #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, len(f.Content[1])),"<","<","ALL"),">",">")# This returns the content of a file at a revision number in an SVN repository as a Java bytestream. the problem here is that the Replacenocase doesnt do anything. the end result in the source is still < and > NOT < and > If anyone can help me out here it would be HUGE! Thanks Duncan On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > @charlie - found this on Andrews site: > http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > Now I have this: > > sb is: > & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > object containing the c current repository & methods available. > > > > > > > > > No such file or revision > > > > Interestingly I can now wrap things around this (like a textarea). So > this is a great improvement over what I had before that reset the > stream and cleared everything else from the screen. > > > On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > Can you send me the code in question offlist I'll have a look at later > > tonight if you like, I am not a java guru but know enough to get by most of > > that POC was help from Mark Mandel and another person who's name escapes me > > at the moment. > > > > But what I do understand is that the pageOut.Write in your code is suppose > > to turn it into a string or char output, and I guess looking at how it fits > > in your scenario might help me a bit more. > > > > Sorry couldn't be any more helpful there. > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone:+613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > > -Original Message- > > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of Duncan > > Sent: Wednesday, 7 March 2007 3:56 PM > > To: cfaussie@googlegroups.com > > Subject: [cfaussie] Re: Java Output streams into CF vars > > > > > > Thanks Andrew, I can see what this does, but I dont understand it all > > enough (and the differences between your code and mine) to mash it > > into what I need. > > > > So I have managed to get to this point: > > > > pageOut = getPageContext().getResponse().getOutputStream(); > > out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > > > however this prints the content of the field at the point where this > > line lives in the page. It doesnt assign it to the variable out. > > > > At least now its not resetting the output and its carrying through to > > include the header and footer. > > > > How is it that this is not putting the stream into the out variable? > > > > > > > > > > > > > > > -- > Duncan I Loxton > [EMAIL PROTECTED] > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Duncan, Sorry I got very sidetracked when I was looking at this for you, but the one thing I did notice and I know this is obvious to me but might not look clean. Which test will now hold that info:-) Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Thursday, 29 March 2007 11:00 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars Not being able to push this data into a CF var is now becoming a real problem - I cant do anything to the output. For example I need to replace < and > with < and > Here is an example: #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, len(f.Content[1])),"<","<","ALL"),">",">")# This returns the content of a file at a revision number in an SVN repository as a Java bytestream. the problem here is that the Replacenocase doesnt do anything. the end result in the source is still < and > NOT < and > If anyone can help me out here it would be HUGE! Thanks Duncan On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > @charlie - found this on Andrews site: > http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > Now I have this: > > sb is: > & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > object containing the c current repository & methods available. > > > > > > > > > No such file or revision > > > > Interestingly I can now wrap things around this (like a textarea). So > this is a great improvement over what I had before that reset the > stream and cleared everything else from the screen. > > > On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > Can you send me the code in question offlist I'll have a look at later > > tonight if you like, I am not a java guru but know enough to get by most of > > that POC was help from Mark Mandel and another person who's name escapes me > > at the moment. > > > > But what I do understand is that the pageOut.Write in your code is suppose > > to turn it into a string or char output, and I guess looking at how it fits > > in your scenario might help me a bit more. > > > > Sorry couldn't be any more helpful there. > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone:+613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > > -Original Message- > > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of Duncan > > Sent: Wednesday, 7 March 2007 3:56 PM > > To: cfaussie@googlegroups.com > > Subject: [cfaussie] Re: Java Output streams into CF vars > > > > > > Thanks Andrew, I can see what this does, but I dont understand it all > > enough (and the differences between your code and mine) to mash it > > into what I need. > > > > So I have managed to get to this point: > > > > pageOut = getPageContext().getResponse().getOutputStream(); > > out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > > > however this prints the content of the field at the point where this > > line lives in the page. It doesnt assign it to the variable out. > > > > At least now its not resetting the output and its carrying through to > > include the header and footer. > > > > How is it that this is not putting the stream into the out variable? > > > > > > > > > > > > > > > -- > Duncan I Loxton > [EMAIL PROTECTED] > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Not being able to push this data into a CF var is now becoming a real problem - I cant do anything to the output. For example I need to replace < and > with < and > Here is an example: #ReplacenoCase(ReplacenoCase(pageOut.write(f.Content[1], 0, len(f.Content[1])),"<","<","ALL"),">",">")# This returns the content of a file at a revision number in an SVN repository as a Java bytestream. the problem here is that the Replacenocase doesnt do anything. the end result in the source is still < and > NOT < and > If anyone can help me out here it would be HUGE! Thanks Duncan On 3/8/07, Duncan <[EMAIL PROTECTED]> wrote: > @charlie - found this on Andrews site: > http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept > > Now I have this: > > sb is: > CreateObject("component","org.osborne.svn.svnbrowser").init(application.SVN > & "/" & client.safe,application.svnusr,application.svnpwd)> i.e. the > object containing the c current repository & methods available. > > > > > > > > > No such file or revision > > > > Interestingly I can now wrap things around this (like a textarea). So > this is a great improvement over what I had before that reset the > stream and cleared everything else from the screen. > > > On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > Can you send me the code in question offlist I'll have a look at later > > tonight if you like, I am not a java guru but know enough to get by most of > > that POC was help from Mark Mandel and another person who's name escapes me > > at the moment. > > > > But what I do understand is that the pageOut.Write in your code is suppose > > to turn it into a string or char output, and I guess looking at how it fits > > in your scenario might help me a bit more. > > > > Sorry couldn't be any more helpful there. > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone:+613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > > -Original Message- > > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of Duncan > > Sent: Wednesday, 7 March 2007 3:56 PM > > To: cfaussie@googlegroups.com > > Subject: [cfaussie] Re: Java Output streams into CF vars > > > > > > Thanks Andrew, I can see what this does, but I dont understand it all > > enough (and the differences between your code and mine) to mash it > > into what I need. > > > > So I have managed to get to this point: > > > > pageOut = getPageContext().getResponse().getOutputStream(); > > out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > > > however this prints the content of the field at the point where this > > line lives in the page. It doesnt assign it to the variable out. > > > > At least now its not resetting the output and its carrying through to > > include the header and footer. > > > > How is it that this is not putting the stream into the out variable? > > > > > > > > > > > > > > > -- > Duncan I Loxton > [EMAIL PROTECTED] > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Credit where credit is due. :-) Thanks. /Charlie http://www.carehart.org/ _ From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Mandel Sent: Thursday, March 08, 2007 12:12 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars A... shucks >blushes< You say the sweetest things ;o) Mark On 3/8/07, Andrew Scott < <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]> wrote: Charlie, Thanks, but the real credit goes to Mark Mandel for helping with the java stuff as I hadn't got the byte stuff working properly. Andrew Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~--- <>
[cfaussie] Re: Java Output streams into CF vars
A... shucks >blushes< You say the sweetest things ;o) Mark On 3/8/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > Charlie, > > Thanks, but the real credit goes to Mark Mandel for helping with the java > stuff as I hadn't got the byte stuff working properly. > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone:+613 8676 4223 > Mobile: 0404 998 273 > > > > > -- E: [EMAIL PROTECTED] W: www.compoundtheory.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Charlie, Thanks, but the real credit goes to Mark Mandel for helping with the java stuff as I hadn't got the byte stuff working properly. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Great. That offered a key clue for something I've wanted to do. Thanks to both of you, especially Andrew for writing the blog entry. Cheers. /Charlie http://www.carehart.org/blog/ -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Wednesday, March 07, 2007 5:20 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars @charlie - found this on Andrews site: http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
@charlie - found this on Andrews site: http://www.andyscott.id.au/index.cfm/2006/9/12/Proof-of-Concept Now I have this: sb is: i.e. the object containing the c current repository & methods available. No such file or revision Interestingly I can now wrap things around this (like a textarea). So this is a great improvement over what I had before that reset the stream and cleared everything else from the screen. On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > Can you send me the code in question offlist I'll have a look at later > tonight if you like, I am not a java guru but know enough to get by most of > that POC was help from Mark Mandel and another person who's name escapes me > at the moment. > > But what I do understand is that the pageOut.Write in your code is suppose > to turn it into a string or char output, and I guess looking at how it fits > in your scenario might help me a bit more. > > Sorry couldn't be any more helpful there. > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone:+613 8676 4223 > Mobile: 0404 998 273 > > > > -Original Message- > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of Duncan > Sent: Wednesday, 7 March 2007 3:56 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Re: Java Output streams into CF vars > > > Thanks Andrew, I can see what this does, but I dont understand it all > enough (and the differences between your code and mine) to mash it > into what I need. > > So I have managed to get to this point: > > pageOut = getPageContext().getResponse().getOutputStream(); > out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > however this prints the content of the field at the point where this > line lives in the page. It doesnt assign it to the variable out. > > At least now its not resetting the output and its carrying through to > include the header and footer. > > How is it that this is not putting the stream into the out variable? > > > > > > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Yes, I'm curious to hear more myself. Duncan, what's the "f" referring to in your code? And what page on Andrew's site gave you the insight into what you have to this point (Andrew or Duncan)? I looked at the link given (to the front of his site) but couldn't find what POC he was referring to. I happened just tonight to be trying to get access to the page content generated to the point, just as Duncan refers to, and had had code similar to that, but not quite enough. Sounds like yours is very close to what I seek. Thanks to both of you. /Charlie http://www.carehart.org/blog/ -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rod higgins Sent: Wednesday, March 07, 2007 12:24 AM To: cfaussie Subject: [cfaussie] Re: Java Output streams into CF vars Can you post your full code that you have put together to now? On Mar 7, 3:55 pm, Duncan <[EMAIL PROTECTED]> wrote: > Thanks Andrew, I can see what this does, but I dont understand it all > enough (and the differences between your code and mine) to mash it > into what I need. > > So I have managed to get to this point: > > pageOut = getPageContext().getResponse().getOutputStream(); > out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > however this prints the content of the field at the point where this > line lives in the page. It doesnt assign it to the variable out. > > At least now its not resetting the output and its carrying through to > include the header and footer. > > How is it that this is not putting the stream into the out variable? > > On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > Duncan, > > > Visitwww.andyscott.id.auan have a look at my proof of concept, it > > does what you're asking for with the variable. > > > Andrew Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Can you post your full code that you have put together to now? On Mar 7, 3:55 pm, Duncan <[EMAIL PROTECTED]> wrote: > Thanks Andrew, I can see what this does, but I dont understand it all > enough (and the differences between your code and mine) to mash it > into what I need. > > So I have managed to get to this point: > > pageOut = getPageContext().getResponse().getOutputStream(); > out = pageOut.write(f.Content[1], 0, len(f.Content[1])); > > however this prints the content of the field at the point where this > line lives in the page. It doesnt assign it to the variable out. > > At least now its not resetting the output and its carrying through to > include the header and footer. > > How is it that this is not putting the stream into the out variable? > > On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > > > > > > Duncan, > > > Visitwww.andyscott.id.auan have a look at my proof of concept, it does > > what you're asking for with the variable. > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > >www.aegeon.com.au > > Phone:+613 8676 4223 > > Mobile: 0404 998 273 > > > -Original Message- > > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of Duncan > > Sent: Wednesday, 7 March 2007 12:07 PM > > To: cfaussie > > Subject: [cfaussie] Java Output streams into CF vars > > > I am working with cfdiff, and specifcally the svnbrowser element. > > > When viewing a specific revision of a file the code pushes the file > > contents directly from a Java out put stream into the browser. > > >http://cfdiff.googlecode.com/svn/trunk/svn.cfmcheck out lines 101 - 121. > > > I have tried with no degree of luck to get the output into a cf > > variable. My end goal here is to be able to put it in a text area and > > have code colouring on it (see riaforge for an example > >http://ajaxcfc.riaforge.org/index.cfm?event=page.svnview&path=%2Ftrun... > > e&file=ajax%2Ecfc > > ), this would then leave the user the choice to download the file > > (currently this is what happens) or view it and have other options. > > > The best I have so far is a cfdump of the structure - it contains the > > following: > > Author: duncan > > Content: binary: > > 1043210310610410632103104321061041310131010010210310010210351505050131013101 > > 0010210310010210351515113101310100102103100102103525252131013101001021033910 > > 810710010210310610732100102103 > > date : {ts '2007-03-02 05:10:44'}, > > kind: file, > > message: NULL, > > path: / trunk/scribble.cfm, > > revision: 5, > > size: 71, > > url: /trunk/scribble.cfm > > > FYI the content of scribble.cfm is: > > > [code] > > h gjhj gh jh > > > dfgdfg3222 > > > dfgdfg333 > > > dfgdfg444 > > > dfg'lkdfgjk dfg > > [/code] > > > Now I have tried binaryDecode() and binaryEncode() but this seems to > > not do the trick, its a completely different form of binary! > > > Can anyone point me in the direction of getting this binary java stuff > > into a CF var after being converted? > > > -- > > Duncan I Loxton > > [EMAIL PROTECTED] > > -- > Duncan I Loxton > [EMAIL PROTECTED] Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Can you send me the code in question offlist I'll have a look at later tonight if you like, I am not a java guru but know enough to get by most of that POC was help from Mark Mandel and another person who's name escapes me at the moment. But what I do understand is that the pageOut.Write in your code is suppose to turn it into a string or char output, and I guess looking at how it fits in your scenario might help me a bit more. Sorry couldn't be any more helpful there. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Wednesday, 7 March 2007 3:56 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Java Output streams into CF vars Thanks Andrew, I can see what this does, but I dont understand it all enough (and the differences between your code and mine) to mash it into what I need. So I have managed to get to this point: pageOut = getPageContext().getResponse().getOutputStream(); out = pageOut.write(f.Content[1], 0, len(f.Content[1])); however this prints the content of the field at the point where this line lives in the page. It doesnt assign it to the variable out. At least now its not resetting the output and its carrying through to include the header and footer. How is it that this is not putting the stream into the out variable? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Thanks Andrew, I can see what this does, but I dont understand it all enough (and the differences between your code and mine) to mash it into what I need. So I have managed to get to this point: pageOut = getPageContext().getResponse().getOutputStream(); out = pageOut.write(f.Content[1], 0, len(f.Content[1])); however this prints the content of the field at the point where this line lives in the page. It doesnt assign it to the variable out. At least now its not resetting the output and its carrying through to include the header and footer. How is it that this is not putting the stream into the out variable? On 3/7/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > Duncan, > > Visit www.andyscott.id.au an have a look at my proof of concept, it does > what you're asking for with the variable. > > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone:+613 8676 4223 > Mobile: 0404 998 273 > > > > -Original Message- > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of Duncan > Sent: Wednesday, 7 March 2007 12:07 PM > To: cfaussie > Subject: [cfaussie] Java Output streams into CF vars > > > I am working with cfdiff, and specifcally the svnbrowser element. > > When viewing a specific revision of a file the code pushes the file > contents directly from a Java out put stream into the browser. > > http://cfdiff.googlecode.com/svn/trunk/svn.cfm check out lines 101 - 121. > > I have tried with no degree of luck to get the output into a cf > variable. My end goal here is to be able to put it in a text area and > have code colouring on it (see riaforge for an example > http://ajaxcfc.riaforge.org/index.cfm?event=page.svnview&path=%2Ftrunk%2Fcor > e&file=ajax%2Ecfc > ), this would then leave the user the choice to download the file > (currently this is what happens) or view it and have other options. > > The best I have so far is a cfdump of the structure - it contains the > following: > Author: duncan > Content: binary: > 1043210310610410632103104321061041310131010010210310010210351505050131013101 > 0010210310010210351515113101310100102103100102103525252131013101001021033910 > 810710010210310610732100102103 > date : {ts '2007-03-02 05:10:44'}, > kind: file, > message: NULL, > path: / trunk/scribble.cfm, > revision: 5, > size: 71, > url: /trunk/scribble.cfm > > FYI the content of scribble.cfm is: > > [code] > h gjhj gh jh > > dfgdfg3222 > > dfgdfg333 > > dfgdfg444 > > dfg'lkdfgjk dfg > [/code] > > Now I have tried binaryDecode() and binaryEncode() but this seems to > not do the trick, its a completely different form of binary! > > Can anyone point me in the direction of getting this binary java stuff > into a CF var after being converted? > > -- > Duncan I Loxton > [EMAIL PROTECTED] > > > > > > -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Java Output streams into CF vars
Duncan, Visit www.andyscott.id.au an have a look at my proof of concept, it does what you're asking for with the variable. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Sent: Wednesday, 7 March 2007 12:07 PM To: cfaussie Subject: [cfaussie] Java Output streams into CF vars I am working with cfdiff, and specifcally the svnbrowser element. When viewing a specific revision of a file the code pushes the file contents directly from a Java out put stream into the browser. http://cfdiff.googlecode.com/svn/trunk/svn.cfm check out lines 101 - 121. I have tried with no degree of luck to get the output into a cf variable. My end goal here is to be able to put it in a text area and have code colouring on it (see riaforge for an example http://ajaxcfc.riaforge.org/index.cfm?event=page.svnview&path=%2Ftrunk%2Fcor e&file=ajax%2Ecfc ), this would then leave the user the choice to download the file (currently this is what happens) or view it and have other options. The best I have so far is a cfdump of the structure - it contains the following: Author: duncan Content: binary: 1043210310610410632103104321061041310131010010210310010210351505050131013101 0010210310010210351515113101310100102103100102103525252131013101001021033910 810710010210310610732100102103 date : {ts '2007-03-02 05:10:44'}, kind: file, message: NULL, path: / trunk/scribble.cfm, revision: 5, size: 71, url: /trunk/scribble.cfm FYI the content of scribble.cfm is: [code] h gjhj gh jh dfgdfg3222 dfgdfg333 dfgdfg444 dfg'lkdfgjk dfg [/code] Now I have tried binaryDecode() and binaryEncode() but this seems to not do the trick, its a completely different form of binary! Can anyone point me in the direction of getting this binary java stuff into a CF var after being converted? -- Duncan I Loxton [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---