2,443 Posted Topics

Member Avatar for Ved_TheOne

Well, seeing your code would be a good starting point. [b]And use code tags[/b]

Member Avatar for masijade
0
127
Member Avatar for GOGO@FreeBSD

We could use a little more information. Do you get an error message when you run it? What is it suppossed to do, and what does it actually do?

Member Avatar for ravinpals
0
97
Member Avatar for satish.paluvai

Java will always take the most specific applicable method. In this case, using null, the String one is the most specific, applicable method.

Member Avatar for ~s.o.s~
-1
112
Member Avatar for tygerberg

So what, exactly, do you want use to do. I saw a few statements in that post, but no question.

Member Avatar for peter_budo
0
96
Member Avatar for vvn

Well, let's just pick a braod topic, say tell me about, and then wait for specific detailed information about our nearly meaningless question, shall we? Do a little research until you have at least a general idea of what it is you want to do, Google and standard wikipedia are …

Member Avatar for jwenting
0
160
Member Avatar for Ramya03

Please don't double post. Here the original thread. [url]http://www.daniweb.com/forums/thread84032.html[/url]

Member Avatar for peter_budo
0
85
Member Avatar for Ramya03

What do you mean [quote] I want to send the values in the text box to java [/quote] ? If the textbox is part of the applet, "java" already has the values. I think what you are looking for, however, are ActionListener and the getText() method of JTextField. Check out …

Member Avatar for vinod_javas
0
433
Member Avatar for vijaygandhi559
Member Avatar for masijade
0
163
Member Avatar for vrgurav

change [code] export PATH=$ORACLE_HOME/bin [/code] to [code] export PATH=${PATH}:${ORACLE_HOME}/bin [/code]

Member Avatar for masijade
0
92
Member Avatar for MrScruff
Member Avatar for masijade
0
1K
Member Avatar for satish.paluvai

[QUOTE=ProgrammersTalk;404222]it will work!!! but only as a method, not thread. It won't run simultaneously :)[/QUOTE] If you read his thread, that is exactly what he said. ;-)

Member Avatar for ProgrammersTalk
0
133
Member Avatar for genocide

Do your own homework. You have a month, do it. God, asking for someone to do your work for you, then saying, in the same breath no less, that you want to master the language. Well, buddy, those two statements just do not go together.

Member Avatar for jwenting
0
151
Member Avatar for saswati_mishra

Runtime.exec() Read [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] If you insist on using Java to do this. I feel, for something this simplistic, and server undemanding, php or a simple CGI would be more than enough and any kind of Java/JSP (which would require an entire framework) is [b]extreme[/b] overkill. Ajax, IMO, would also be …

Member Avatar for masijade
0
103
Member Avatar for md_salman

Because, by having layers using defined interfaces between them, allows you to completely change the way a specific part of the program works without affecting the others.

Member Avatar for jwenting
0
80
Member Avatar for richip

Yes place the push/unshift @INC in a BEGIN block, or change use MyModule to require MyModule. The keyword use forces inclusion of the module at compile time, so modifications of the @INC list (AFAIK) has no effect for a use, but a require doesn't include the module until "runtime", or …

Member Avatar for masijade
0
484
Member Avatar for saswati_mishra
Member Avatar for kalaiselvi.v

Is the database running? Is it running on port 3306? Is there a firewall active blocking the port? Are you attempting to connect to the right host? Are you attempting to connect to 3306? Are you using the correct tablename in the connection url? Is the username and password correct? …

Member Avatar for masijade
0
111
Member Avatar for satish.paluvai

What exactly are you trying to do, and what error messages / unwanted effects are you getting / seeing? The code in question would help, [b]alot[/b].

Member Avatar for jwenting
0
116
Member Avatar for onsir

Look at the different Focus and FocusListener classes. I haven't done something like this, myself, yet, but I would assume that you will finds the info there. Specifically (now that I look at it): [url]http://java.sun.com/j2se/1.5.0/docs/api/java/awt/FocusTraversalPolicy.html[/url]

Member Avatar for masijade
0
74
Member Avatar for onsir

He mentions netbeans because he was probably hoping to get an answer that told him what three or four mouse clicks he had to make in netbeans to get netbeans to generate the code. (Not that this either is, or is not, possible.)

Member Avatar for masijade
-1
100
Member Avatar for grussell

[QUOTE=deng_cen;398493]hi: you can do that like that is package com.structure; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class TestArray { static List<String> list = new ArrayList<String>(); // static Object[] state; public static void main(String agrs[]) { Scanner scan = new Scanner(System.in); System.out.println("Please input number:"); int num = scan.nextInt(); System.out.println("Please input …

Member Avatar for masijade
0
316
Member Avatar for satish.paluvai

Although (at least according to the "normal" rules for class extension) it will compile just fine without overriding any of them (AFAIK, I haven't actually tried it), it just wouldn't do anything other than return the http error message that the requested http service/method is not supported/implemented.

Member Avatar for masijade
0
89
Member Avatar for seechaitanya
Member Avatar for arunprashanth
Re: Java

[QUOTE=thekashyap;395756]AFAIK this used to be the case, now-a-days webServ itself takes care of both these tasks.[/QUOTE] No. Tomcat is a ServletContainer that is able to perform most of the tasks of a web server. Apache is a Web Server, but has 0 JSP/Servlet capability (it has its own ASPs, but …

Member Avatar for masijade
0
114
Member Avatar for Ghost

Using a NullLayout is not Platform independent as the varying underlying graphics systems display things differently, so the bounds are not always (and usually are not) the same and so your layout will not always work. As far as the buttons showing up under the image, remove everything from the …

Member Avatar for masijade
0
436
Member Avatar for belhifet

[quote=belhifet;394403]Yes I have, but I didn't get the correct answer yet. <deleted - keep it clean>.[/quote] Well, this is guanrteed to get you answers. Continue in the other thread. If you don't like the answers there, then say that in the thread and ask for other possibilities, don't just simply …

Member Avatar for masijade
0
81
Member Avatar for praveen_kr541

They are called CustomRenderers. And, both of them are covered in the JTable Tutorial [url]http://java.sun.com/docs/books/tutorial/uiswing/components/table.html[/url]

Member Avatar for ProgrammersTalk
0
86
Member Avatar for rusman
Member Avatar for arunprashanth

Because the Tomcat/Jakarta projects are a part of the Apache Foundation, but the Tomcat Server is not the same thing as the Apache Web Server.

Member Avatar for Ezzaral
0
97
Member Avatar for kavita BUDHOLIA
Re: Jsp

[QUOTE=kavita BUDHOLIA;391882]How To Store Image In Oracle[/QUOTE] Use a BLOB. [QUOTE=kavita BUDHOLIA;391882]And Fetch Using Jsp Java Beans.[/QUOTE] Use JDBC. Ask a [b]general[/b] question, get a [b]general[/b] answer. Try and start coding something (search for and read some tutorials and definately read the API for the involved classes), then when you …

Member Avatar for masijade
0
65
Member Avatar for arunprashanth

mod_jk is not part of Tomcat, per se. It is an apache module which allows apache to communicate with tomcat using a "special" protocol, thereby allowing apache to serve as a front end web server for tomcat. Therefore, that file will be found wherever apache stores its modules.

Member Avatar for masijade
0
53
Member Avatar for Jishnu

First of all, What thing in bold? Second of all, why did you start a new thread? Rather than sticking with [url]http://www.daniweb.com/forums/thread81344.html[/url] ?

Member Avatar for Jishnu
0
152
Member Avatar for rollan
Member Avatar for amtallah

What the prvious poster was saying is, post the method you are using, as well as the code where you get the string from the user, and where you then call the method involved.

Member Avatar for Ezzaral
0
101
Member Avatar for Jishnu

Your trying to access/use something that has not been defined/initialised yet. The full error message, and highlighting of the line referenced in the error message would help.

Member Avatar for Ezzaral
0
260
Member Avatar for Toktam

I assume this is coming after some other command, right? Such as [inlinecode]cat somefile[/inlinecode]. So, what the following pipeline command does [code]cat somefile | grep "^[a-zA-Z]"[/code] is return all lines that start with a letter, whether capital or not. Effectivly filtering out all lines that do not. That is, as …

Member Avatar for vrgurav
0
263
Member Avatar for Toktam

[code] man rm -r is recursive (including the directories) -f force (don't ask) -i interactive (ask before deleting) [/code] Chances are, somewhere in the profile, whether in your shell or in /etc/profile is an alias that changes rm to rm -i.

Member Avatar for vrgurav
0
135
Member Avatar for j3p0yz
Member Avatar for Ezzaral
0
89
Member Avatar for saurav

I will bet that currently, you have a JRE_HOME defined in your Tomcat configuration, but not a JAVA_HOME. Define JAVA_HOME in your Tomcat configuration and the problem should go away.

Member Avatar for saurav
0
250
Member Avatar for Stoney

What is the "input" object. It appears as though you have forgotten to declare, define, and initialize it. (I assume it is suppossed to be a Scanner or something like that).

Member Avatar for masijade
0
76
Member Avatar for randomFIRE

[code] Alarm a = new Alarm(); Thread t = new Thread(a); t.start(); [/code] Alarm implements runnable, that means it must define a method run, but it is not, in itself a Thread object. The method start is a method of Thread. You create a new Thread with your Alarm object …

Member Avatar for masijade
0
145
Member Avatar for randomFIRE

Try using [inlinecode]System.getProperty("user.dir")[/inlinecode] or [inlinecode]System.getProperty("home.dir")[/inlinecode] if you want the current directory or if you want the directory where that class file also resides, then try [inlinecode]getClass().getClassLoader().findResource("danger.jpg")[/inlinecode] Read the API for System and ClassLoader for a more detailed description.

Member Avatar for masijade
0
142
Member Avatar for ashitha

Stick to one thread. Either in this post, or your other one, post the code again (using code tags this time). Post, also, the complete error message and comment the line referenced in the error message.

Member Avatar for jwenting
0
313
Member Avatar for Dhanesh.M

Read up on JDBC, first (the Sun tutorials are enough). Then download, read the documentation for, and experiment with, either POI or JExcel. Then, combine the lessons learned from the two above points.

Member Avatar for jwenting
0
101
Member Avatar for ashitha

Could you be at least a LITLLE more specific. Post the entire error message, together with the code (abd use code tags) and mark with a comment, or something, the line referenced in the NullPointerException. As far as to your question "y the null pointer exception is coming" (which I …

Member Avatar for rgtaylor
0
345
Member Avatar for Dageki

Well, you can remove files and directories from your path with a single find command as follows: [inlinecode]find /path/to/backup/root -mtime 4 -exec rm -f {} \;[/inlinecode] If you also want a list of files deleted in this manner than do as follows: [inlinecode]find /path/to/backup/root -mtime 4 -exec rm -f {} …

Member Avatar for Dageki
0
98
Member Avatar for LyddieFrog
Member Avatar for LyddieFrog
0
154
Member Avatar for isitintheback
Member Avatar for isitintheback
0
171
Member Avatar for jk_bscomp

[code] javac *.java // or javac `find . -name \*.java` // then java TheClassWithAMainMethod [/code]

Member Avatar for jwenting
0
98
Member Avatar for joe33

Java != JavaScript. Please request to have your thread moved to the JavaScript forum.

Member Avatar for MattEvans
0
85

The End.