@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> hello
<1> hello
<0> guys ... what is the easiest way you use for applet debugging ?
<1> as you debug any other java code
<2> use the appletviewer and simple System.out.println(... statements to see the stat of the code
<3> calchas: at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:294
<3> 5)
<3> at listfi.DisplayFileContent(listfi.java:163)
<3> at listfi.main(listfi.java:244)
<3> --------------------------------------------------
<3> C:\programa\java\Mysql>
<3> sorry
<3> anyone can give me a advice about: http://rafb.net/paste/results/P2EKer14.html
<0> okay ... System.out will do ...
<4> Goedeavond mense
<2> do not paste code in the chan



<2> jak2000 if you want help you will need to state the problem in english, throwing code at someone and asking what's wrong with no context is just plain silly
<3> calchas ok
<3> thanks
<5> looks pretty innocent to me
<5> odd it doesnt work.
<5> I havent played with preparestatment for a while though
<5> jak2000 : Sure it is not another statement that is the culprit ?
<2> maybe escape the '
<2> they are causing a failure to detect the second ?
<2> I think you need to lose them altogether
<2> it knowns you are using a string already
<3> teralaser.... any column names are bad i checked and now my problem is:
<3> http://rafb.net/paste/results/EqaRP990.html
<3> i think my var: wNomFav = "Batanga - Latin Music Internet Radio" are the problem...
<2> make a test case
<2> need to see which lines throw the exceptions
<2> etc
<3> ok i reduce the parameters, first...
<2> test case, test case ...
<2> this is a prime use of one
<3> ok...
<3> i found the error...
<3> with a execupdate too can u se a prepared statment?
<3> executeUpdate
<2> and?
<3> can i use a prepared statment?
<2> ?
<2> am I missing every 3rd line of this conversation or are you really talk in such a disjointed way?
<3> wit a executeUodate
<3> with
<2> does PreparedStatement have and executeUpdate method
<3> let me check in java
<2> I think you are getting OO the wrong way round and thinking procedurally
<3> yes
<3> i am a pascal programmer... and try understand java
<3> not boother please
<2> then there is a method that you can call on a PreparedStatement called executeUpdate
<2> that you can use
<2> does that way round make sense
<3> ok
<2> sorry your english makes this colse to impossible
<3> yes...
<2> make a test case and debug that
<2> good luck
<3> calchas: http://java.sun.com/j2se/1.4.2/docs/api/java/sql/PreparedStatement.html
<3> calchas any sample about test case?
<2> I already know that, I asked you the question so you would answer it for your self
<2> see the FAQ
<3> ok
<2> make a short piece of stand alone code that only tests this prepared statement, and has no other code in it
<2> makes it easy to experiment and debug
<3> yes now, understood...
<2> once it works integrate it back into your code
<6> Hello EveryOne!
<2> hi
<6> so whats new
<7> hi. i have a public static field in a cl*** and what to get the value of field from a cl*** object. i got so far to have the field object of that field but without an instance of the cl*** it doesn't seem to work. but i don't have an instance of that cl*** at that time. any way to get that static value of the cl*** object?
<2> int i = MyCl***.myStatic;
<7> the cl*** will be loaded at runtime, so i can't code it that way.
<2> use CL*** etc
<2> to reference the loaded cl***



<8> or make the cl*** a Singleton
<7> i tried that and i got that cl*** object of the cl***
<7> like?
<7> i got so far: Cl*** mycl*** = Cl***.forName("myCl***");
<7> Field name = mycl***.getField("NAME");
<7> but all get methods need an object and i don't have one
<8> read the doc
<8> i think those object params are to p*** params
<7> i tried null and got an IllegalArgumentException
<2> stop guessing and research :(
<7> yeah. thought so
<6> Rayaken: did you write that static field cl***?
<2> why not use OO
<2> scrub that
<3> same me, OO :( arghh
<3> procedural..
<3> jeje
<2> are you sure you need to dynamically load this cl*** in the first place
<2> jak2000 no not the same as you at all
<3> me all? jeje
<7> not necessarily but it would be nice cause i don't like that fact that i need to restart my game server only for adding something which could be done without restarting
<2> ok
<7> but thanx anyway. i think i'll put the value into the manifest of the jar.
<2> reflection is the answer
<2> just need to sort the details
<7> i'll dig into it. thanx
<8> rayaken see this "If the underlying field is a static field, the obj argument is ignored; it may be null."
<7> ah. silly me. it works.
<7> i just had to use the get() method and cast it to the right type (string). thanx
<7> originally use the wrong getxxx() method
<7> used
<2> cool
<9> stie cineva programare java
<9> ???????????????????????????/
<7> english please
<9> va rog.....am examen si as avea nevoie d ceva idicatii
<3> Delia21 english or spanish..
<9> i need some explinations about java programme
<9> could u help me please
<9> i have an exam...
<7> what is your exact problem?
<9> i need do do a programe.....it has to contain certin things......
<9> such as....saving the dates in a folder
<9> to contain a derivate cl***.....and to be included in an applet
<9> and to read from the keyboard
<10> hello
<10> how a teach java in 24 hours
<10> ??
<10> :)
<4> hmmm, I got a problem with my listrenderer, can anyone help? http://pastebin.com/505759
<10> i need do do a programe.....it has to contain certin things......
<10> such as....saving the dates in a folder
<10> to contain a derivate cl***.....and to be included in an applet
<10> and to read from the keyboard
<11> hello all
<4> hmmm, I got a problem with my listrenderer, can anyone help? http://pastebin.com/505759
<9> HELLO....DOES ANYONE KNOW JAVA....I HAVE TO DO A PROGRAMME.....PLEASE
<5> ilsn : Line 31 seems a bit odd
<5> if you initialize the JList with new JList(Object[] soemvalues), usually you will only get one value (Object) in the renderer
<5> otherwise, often people use a if (value instanceof expectedcl***) ....
<4> hmmm
<2> Delia21 if you have a question ask it, an dplease stop using caps
<3> calchas: http://rafb.net/paste/results/i8Piio35.html
<3> any advice?
<2> jak2000 yes
<2> ask a question
<3> ok
<3> how print the statment of my prepareStatement ? same as: System.out.println(pStmt) ?
<2> you can't afaik
<3> ok
<2> what are the types of you sql variables?
<3> the 7th parameter is int
<3> i use: pStmt.setInt(7, Integer.parseInt(wIconIndex));
<2> stop


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

gnuworld cvs no route to host
public_html .htaccess allowoverride none
#php
#london
#AllNiteCafe
#AllNiteCafe
#chatzone
#skype
#london
call function with openforms collection



Home  |  disclaimer  |  contact  |  submit quotes