| |
| |
| |
|
Page: 1 2
Comments:
<0> hi <1> java rice <2> http://www4.p***ur.com/bos.html <3> I prefer beans ;) <3> Whoah, Clackwell going berserk ;-) <2> good night <3> Clackwell: running off? Then sleep well, see you later. <4> he's beerking his sheets now <4> bezerking that was <3> hehe <5> anyone good with javabeans <5> i'm going through the sun j2ee tutorial ... and i don't unerstand this sentence: "The ConverterHome interface defines life-cycle methods such as create and remove. Before the ConverterClient can invoke the create method, it must locate and instantiate an object whose type is ConverterHome." <5> how can an object by of type "ConverterHome" when "ConverterHome" is an interface?? <5> i thought you could only instantiate objects whose cl*** IMPLEMENTS the interface definition!? <3> its possible.
<3> embedded (internal) cl***es for example. <3> hold on <5> ok <3> for example.. Suppose I want to list a directory for specific files. <5> ok ... <3> File().list() <3> it requires a FilenameFilter, but that is an Interface <3> So, within the cl***, I define an internal ('embedded') cl*** to define all this. <3> FilenameFilter tutfilter = new FilenameFilter() { <3> then I define the methods to override and I basicly have the same approach as if I'd implement the interface. <3> j2eeWannabe: So it can be done this way. While an Interface is indeed normally implemented you can also create an object out of it. <3> by basicly creating an internal cl*** consisting of the object. I don't know of a better way to describe this. <5> hmm <5> can you point me to any other illustrations? <3> j2eeWannabe: hmm, it sounds cliche but the only thing coming to my mind at this time would be the Sun Java tutorial, it also deals with this. <5> ok, i'll take a look <5> its just odd, i've never seen an interface used in this way <3> aye, its not very common. At least not in my opinion, but then again; I'm not a veteran either 8) <5> are you a professional java programmer? <5> i'm sort of a jack of all trades ... but lately all i have been doing is java and i want to try to move into the enterprise <5> i am undervalued at my job ... stuck doing trivial tasks for the past few months. <5> what talent i do have is being wasted away. <6> Lion-O, are you talking about anonymous inner cl***es? <7> hello.. <7> is it possible to use openoffice as a reporting and printing tool for java applications? <8> i am a little confused. I use StringTokenize in a jsp to get tokens by "\n" and it returns me the '\n' too. why? <2> dls128: have you read the api doc for stringtokenizer? <8> yep <2> a 5 seconds glance at it answered the question it seems. <2> "An instance of StringTokenizer behaves in one of two ways, depending on whether it was created with the returnDelims flag having the value true or false:" <8> yeah i use it like this StringTokenizer d = new StringTokenizer( "blah blah\nblah blah", "\n" ); but it returns "blah blah\n" <8> why? <2> dls128: are you saying that the "returnDelims" part does not apply? <2> to your question, that is? <2> [08:10] [dls128 PING reply]: 1sec <8> i am at work and on the phone sry <8> back <8> in that ex the normal tokens should be: "blah blah" and "blah blah" right? <2> dls128: are you saying that the "returnDelims" part does not apply to your question? <8> it apply but at the end of the token it returns it too <8> instead of "blah blah", "blah blah" i get "blah blah\N", "blah blah" <2> StringTokenizer d = new StringTokenizer( "blah blah\nblah blah", "\n", true); System.out.println(">" + d.nextToken() + "<"); -> >blah blah< <2> your test of the behavior is broken or your interpretation of what you tested or what the result is. <2> (given my testing) <8> doesn't work in JSP <2> jsps are converted to servlets and servlets are plain java with a little api extra. <2> it must work the same way in ejbs, jsps, servlets, etc. pp. if it does not it must be the fault of the jsp or the programmer or the java implementation or the jsp engine implementation. <2> see you later <6> 'lo LLyric <9> Hey talios <9> yeah, I was AFK, all day, heh <10> meh.. MSXML should be considered contraband and it should be made a capital offence to refere to it as "XML"-anything <8> where can i find a good documentation and examples about pushlets? <2> never heard of pushlets. <8> Pushlets are a servlet-based mechanism where data is pushed directly from server-side Java objects to (Dynamic) HTML pages within a client-browser without using Java applets or plug-ins. <11> I hadn't heard of them either, until now <10> dls128: based on javascript timers, or html refresh? <10> dls128: seeing as how HTTP is not ap ush protocoll... <11> I was about to say "well using an applet he'd be able to push" <11> but I see he said 'without'
<10> precisely, so it's eaither a rather ugly refresh-related thing, or more likely, yet another fancy word for dynamically updated page portions using the beloved AJAX <8> something like that :) <12> i've worked with pushlets ones <12> we used a hidden frame with javascript <12> it was ugly <11> 'pushlet', not quite keen on that term <11> for something that is probably just a javascript refresh and ajax <12> its more a pullet :) <8> i have to create an app for testing a number of persons in the same time. I am tring to find out if it is possible through a web-based app. <12> if i had to do it again i would use ajax with prototype or another ajax lib <8> any suggestions? <4> Clackwell : yet another let <4> Clackwell : i guess the called in website in the old days <2> let? <2> moin though <4> pushlets i mean <2> ah, xlet <2> n-lets :) <2> inflatious <4> inlets <2> embedlets <2> dorklets <2> dumblets <4> Clackwell : i guess one need to be humorous when "selling" meets technology <4> other you're going insane <2> yeah, one has to ignore 99% of the new terms coming your way <4> other = otherwise <2> http://www.schneier.com/blog/archives/2006/05/nsa_creating_ma.html - especially the last quoted paragraph <11> :-/ <11> thank god I dont live in the US <2> welcome to the land of the free <2> now they need to throw all media people which aren't on their side into jail or somewhere else, then mr. bush and mr. putin should get along very well for a very long time to come. <2> next stop - UK <11> yeh getting similar here too (UK) <13> anyone here familiar with wxWindows? <2> still no, javaq_. <2> http://glenngreenwald.blogspot.com/2006/05/no-need-for-congress-no-need-for.html <11> comprehensively Orwellian <2> yeah ;| <4> well germany is not much better lately <4> see schily's pets, the latest disclosure of BND activities, etc .... <2> yeah <4> "freedom" is not spread but on rather withdrawing almost everywhere <14> failed to resolve to an ejb with a LocalHome under jboss 4 <3> talios: Hmm, you were just too late I already headed upstairs there. So to delayed-answer your question: yes. j2eeWannabe was wondering about Interfaces since he only implemented them in cl***es (implements) and never as a seperate object. Last time I used that was using File().list() which uses an FilenameFilter interface. <3> So basicly: FilenameFilter tutfilter = new FilenameFilter() { public boolean accept(File dir, String name) { return name.endsWith(".tut"); } }; factinfo = new File(datadir).list(tutfilter); <10> tut? <3> wlfshmn: short for tutorial. <3> wlfshmn: this code is used in my nekobot on the 'other place' for IRC tutorials. A bit like #cl*** over here but a little more sufisticated. <10> ah <13> what's wrong w/ this? <13> string periods[3] = {"Novice", "Intermed", "Exper"}; <13> seems right <2> string? <2> no such cl***. <13> sorry <13> yes <13> c++ <10> ~/me ponders pointless abreviation <4> well <4> string periods[] = {"Novice", "Intermed", "Exper"}; <4> not periods[3] <4> the variable is always periods[] and the size gets determined by the right side <4> and String as Clackwell pointed out (all cl***es start with a capital letter) <2> javaq_: BEGINNERSBIBLES Download these two bibles (free of charge): 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial/) 2) Bruce Eckel's "Thinking in Java" (http://www.bruceeckel.com/) <2> javaq_: TUTINDEX Quickly locate information about your topic of interest in the *big* tutorial index: http://java.sun.com/docs/books/tutorial/reallybigindex.html <4> javaq_ : if you additional free bibles check :http://kilian.byethost5.com/computer_science.xhtml <2> +need <15> re <16> In some case u use throws some exception in the signature, in others not, is there a difference between IOException or IllegalArgumentException? <15> Yes, there is a different. <15> One indicates an illegal argument, the other indicates some sort of input/output problem. <16> i meant in need to throw, u need to put a throws IOException, while its not neccesary got IllegalArgumentException?
Return to
#java or Go to some related
logs:
#chatzone #linux #php unknown GCCause Allocation Failure SDDAS NetBSD sess salvagg #mirc rub one out means #java #linux
|
|