736 Posted Topics

Member Avatar for tanha

What is the error, at what line does it occur, I am pretty sure Glassfish orTomcat whichever server you are using gives you the exact error and the exact line number on which it thinks the problem exists. [code=java] connection = DriverManager.getConnection(connectionURL, "root", "root"); [/code] Using root account of the …

Member Avatar for Ravindra_Nikam
0
121
Member Avatar for Gaffer

[QUOTE]I've looked everywhere but keep encountering applets and servlets[/QUOTE] If you have encountered this scenario then you have actually already found your answer. The code in the applets is the client side code, all you have to do is study the networking code in the Applet and implement it in …

Member Avatar for stephen84s
0
78
Member Avatar for aarya

[QUOTE=haoyou2008;693757]hi shaikh_mshariq if u not find jsp web hosting go here <URL SNIPPED> i find two free jsp hosting now, maybe it useful to u[/QUOTE] And why d you think does a SOLVED thread with the last post in the year 2006 need to be revived ????????

Member Avatar for stephen84s
0
1K
Member Avatar for peter_budo

[QUOTE]Can you suggest some easy reading on concurrency (I like reading in style of Deitel or OReilly books, explanation with plenty of examples to try out)[/QUOTE] Well I don't know if this would be an overkill (especially if you just need to start up) but when it comes to concurrency, …

Member Avatar for Ezzaral
0
136
Member Avatar for Saaddani

Are we talking of Java here ? Then shouldn't this [code=java] public static void main() [/code] Be this:- [code=java] public static void main(String[] args) [/code] For normal Applications Java begins program execution in the Main method takes a [B]String[/B] [B]array[/B](which contains the parameters passed to program at the command line) …

Member Avatar for jwenting
0
168
Member Avatar for ingza

First you need to read the [URL="http://www.daniweb.com/forums/announcement9-3.html"]rules [/URL] and then you need to seriously learn the basics of Java, which you can start with the first thread titled "[URL="http://www.daniweb.com/forums/thread99132.html"]Starting Java[/URL]" And if you are a beginner in Java why are you starting directly with graphical user interfaces and applets, first …

Member Avatar for ingza
0
116
Member Avatar for jasimp

Finally because of the fan fare I decided to give Chrome a go today. . . . . AND HELL I was disappointed, Flash took ages to load, sites like Orkut and Facebook wouldn't behave properly, no way to organize your favourites ... At least I couldn't find any, heck …

Member Avatar for stephen84s
0
626
Member Avatar for l4z3r

My worst day was when I once had not correctly handled a Database insert exception (instead of aborting, I was actually retrying sending the message)and I kid you not, it ended up sending 50000+ SMS messages for just one message ... sheesh . . . . . :@ :sweat:

Member Avatar for William Hemsworth
0
140
Member Avatar for qaz1134

You need to initialize your character array something like this:- [code=java] char characterArray[] = new char[charArraySize]; [/code] where the "charArraySize" implies the dimension for your array, you can replace it with 10,20, 30 or ask the user to input it. Also how come I do not see the line where …

Member Avatar for Ezzaral
0
133
Member Avatar for rainny

I am just shooting in the dark here, but I have a feeling what you need is connected to [URL="http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-guide/index.html"]Speech Recognition[/URL].

Member Avatar for Ezzaral
0
103
Member Avatar for knarffrank

[QUOTE=javaAddict;692132]If you don't know java why are you starting with gui when you don't know even the basics of the language? Start by writing simple console programs and learn how to use classes, extending them . . .[/QUOTE] Exactly when you are learning to Swim, you just don't directly jump …

Member Avatar for stephen84s
0
122
Member Avatar for mousey182

Whats the error MySQl is throwing ? I don't think the following should make a difference but have you tried like this : [code=sql] SELECT a.d_key_id, AVG(a.score) as 'avg' FROM (SELECT d_key_id, frequency, weighting,(frequency*weighting) as 'score' FROM users_to_keywords WHERE s_user_id=$user_id AND d_key_id = $score_key ORDER BY score DESC)a GROUP BY …

Member Avatar for mousey182
0
88
Member Avatar for hookedonphp

Use code tags when pasting such content, it makes the post look cleaner and alot more organized. See [URL="http://www.daniweb.com/forums/announcement9-3.html"]here[/URL] and [URL="http://www.daniweb.com/forums/thread93280.html"]here[/URL] for information regarding code tags. To turn on directory browsing I think you will need to add the following directive in your httpd.conf file [code] DirAccess On [/code]

Member Avatar for stephen84s
0
171
Member Avatar for nehagupta0809
Member Avatar for kanika.khattar

[QUOTE](use -source 1.4 or higher to use 'assert' as a keyword)[/QUOTE] Well you given only a skeleton description of the problem, why don't you try and see by doing what the toolkit is telling you that is build with [icode]-source 1.4[/icode] option and any way its been marked as a …

Member Avatar for stephen84s
0
90
Member Avatar for Blackeagle

[QUOTE] Is there a way to close one frame only?[/QUOTE] Check out the [icode]dispose()[/icode] method of the [icode]JFrame[/icode] class. You can also check[URL="http://java.sun.com/docs/books/tutorial/uiswing/events/intro.html"] this tutorial [/URL]to learn more about Event Handling in Java. The second question you mentioned is related to the concept of [URL="http://mindprod.com/jgloss/anonymousclasses.html"]anonymous inner classes[/URL], but if you …

Member Avatar for Blackeagle
0
217
Member Avatar for tiger86

I have seen the same happen to many sites including Yahoo and GMail, and it happened on both browsers IE6 and Firefox, The situation in which this happened was the page was taking too long to load (mostly due to a slow net connection) and suddenly in between the connection …

Member Avatar for blud
0
119
Member Avatar for stephen84s

Hi guys, I just wanted to ask if it would be possible to make the Announcements section visible in the Web Development forums. Also it would be great if certain threads like [URL="http://www.daniweb.com/forums/thread78060.html"]Read this before Posting[/URL] by Narue and [URL="http://www.daniweb.com/forums/thread93280.html"]Guide to Proper Tagging[/URL] by Aia in the C Forum could …

Member Avatar for Dani
0
119
Member Avatar for k2k

Well first lets start with the Operating Systems, there are a ton of free operating systems (better known as linux dstributions) based on Linux, Here are a few popular ones:- [URL="http://www.debian.org"]Debian[/URL] A popular free linux distro. [URL="http://www.ubuntu.com"]Ubuntu[/URL] These guys actually ship Ubuntu CDs directly to your home without any charge …

Member Avatar for DimaYasny
0
215
Member Avatar for William Hemsworth
Member Avatar for TofiLuk

You have not set the layout for your JFrame, and so it is using the FlowLayout. And from your code it looks like you want to use the NULL Layout (something like what VB offers). Refer to [URL="http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html"]this tutorial[/URL] from Sun to learn about Layout Managers in Java. Also I …

Member Avatar for masijade
0
119
Member Avatar for Dancealot

Your code is almost a hundred lines, and your indentation is inconsistent, it would have definitely helped if you would have followed one indentation pattern at least consistently

Member Avatar for Dancealot
0
115
Member Avatar for Stefano Mtangoo

Strange no one recommended the MySQl reference manual as yet. I found it the best guide for all my MySQL questions. [url]http://dev.mysql.com/doc/refman/6.0/en/index.html[/url]

Member Avatar for Shanti C
0
79
Member Avatar for saiclone

[I]My professor just comes to the class and tells us this on our second day, after 1 lecture on basics,[/I] Thats because only basics are needed to do this program all you need to know is how to read from the console, add,subtract,multiply and divide AND NO WE WILL NOT …

Member Avatar for stephen84s
0
223
Member Avatar for deepak@

See if [URL="http://dev.mysql.com/doc/refman/5.0/en/windows-source-build.html"]this[/URL] answers any questions.

Member Avatar for stephen84s
0
139
Member Avatar for punithapary
Re: Asp

[QUOTE=peter_budo;685972]Just side note, IIS can not be install on some Windows versions for example Windows XP Home and some lesser Vista Home versions (can not remember exact names). Therefore check requirements before installing.[/QUOTE] That would be Windows Vista Home Basic and Windows Vista Home Premium.

Member Avatar for stephen84s
0
74
Member Avatar for andr3a
Member Avatar for jwenting
0
60
Member Avatar for dhanshree

[URL="http://www.daniweb.com/forums/announcement9-2.html"]This [/URL]piece of code should do the trick for your project.

Member Avatar for stephen84s
0
64
Member Avatar for dmddinesh

Well honestly just like Peter I am not clear with what you require ? Tell me your exact motive, what is this a part of ? What is your end objective ? Are you trying send / receive SMSes via GSM Modem ??? I need to know that before I …

Member Avatar for stephen84s
0
619
Member Avatar for dav555

Although I haven't used it, have you tried [icode]public void addSelectionInterval(int index0,int index1)[/icode] in the DefaultListSelectionModel class. Also have you set the selection mode to [icode]MULTIPLE_INTERVAL_SELECTION[/icode].

Member Avatar for stephen84s
0
183
Member Avatar for jspbeginner

The following thread is pretty good tutorial on how to manage your database connectivity in JSPs, created by Peter one of the moderators here. [url]http://www.daniweb.com/forums/thread141776.html[/url] Here is the Java EE 5 tutorial also a very useful resource: [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url] Also you might find the following javadocs useful when you are searching …

Member Avatar for stephen84s
0
582
Member Avatar for dc_24l

This has more to do with Java script than with JSP. But can I see what have you been trying.

Member Avatar for stephen84s
0
73
Member Avatar for sendnote

We need to see what have you tried first. Also do not mix database connectivity and your business logic directly inside a JSP, the following tutorial is a great guide on how you should design your web applications in JSP. [url]http://www.daniweb.com/forums/thread141776.html[/url]

Member Avatar for stephen84s
0
105
Member Avatar for architact

I do not know about the apache2triad, But on LAMP the "php.ini" file contains a parameter called as "display_errors", to turn on the errors you have to set [icode]display_errors = On[/icode] and restart apache, Try searching for a file with a similar name in your apache2triad installation. Hopefully it should …

Member Avatar for stephen84s
0
53
Member Avatar for The Dude

Well I got 100% and 91% ... But I cheated :P I dint take the 5 minutes break mentioned both the times

Member Avatar for sittas87
1
63
Member Avatar for ExplainThat

Well checked it out but honestly I found the reference manual more comfortable to look up to but I guess it will differ from person to person (since I have been using the reference manual for almost a couple of years now)

Member Avatar for stephen84s
0
55
Member Avatar for shweta797
Member Avatar for jwenting
0
120
Member Avatar for kevinpeterson22

Man another *%$#@&* thread on mysql & swing created by kevinpeterson22, what the hell is your problem ? When some responds to any of your threads you just do not reply back. Do you think just cause you are making thread after thread on the same topic some one is …

Member Avatar for jaka.ramdani
-1
140
Member Avatar for kszpirak
Member Avatar for stephen84s
0
112
Member Avatar for kiransarv

From what your mentioning I do not see any link to actual sessions. But for your requirement read about [URL="http://java.sun.com/docs/books/tutorial/essential/concurrency/syncmeth.html"]synchronized methods[/URL] in Java and just apply the same to whichever method(service(), doGet(0 or doPost()) you are using to process your requests in the servlet. Although I think there should be …

Member Avatar for stephen84s
0
80
Member Avatar for joshmo

[icode]chptobj1[/icode] is an object of class [icode]Chapter[/icode], whereas [icode]printInfo()[/icode] is a method of class [icode]Book[/icode]. So definitely Java can't find [icode]printInfo()[/icode] method in the [icode]Chapter[/icode] class. It should have been [icode]bkobj1.printInfo()[/icode], But you should be able to trace and solve such errors on your own.

Member Avatar for joshmo
0
219
Member Avatar for knight fyre

Your servlet's .class file should be in WEB-INF/classes/ is that the case ? Also once you move your servlets .class file there, you will need to either restart tomcat entirely or you will need to reload you application, by accessing the tomcat manager at [url]http://localhost:8080/manager/html[/url], for the URL I am …

Member Avatar for mariamAbed
0
157
Member Avatar for lich

[URL="http://www.daniweb.com/forums/announcement8-2.html"]Here[/URL] you go, this should do the job.

Member Avatar for Ezzaral
-2
93
Member Avatar for madhavipoudala

[I]Laziness, the worst illness of humankind.[/I] especially considering the fact that the JDK comes with quite a few good examples !!! @ thread starter Have you ever browsed the installation folder of your JDK ???

Member Avatar for madhavipoudala
0
117
Member Avatar for ravikiran032

normally no, username maybe, but from a little I had read, some may contain your sessionId etc.

Member Avatar for jwenting
0
156
Member Avatar for kevinpeterson22

Please use Code tags, cause if you care about getting the solution, then you should also care about the forum rules. And one major problem, you have not mentioned the problem, is the program compiling, if not what errors are you getting, if its compiling what is the output you …

Member Avatar for stephen84s
0
283
Member Avatar for shijunair

[code] while(rs.next()) { if((rs.getString("m_emp_no").equals(user)) && (rs.getString("m_password").equals(pwd)) ) { " " direct to some page } else { <script language="javascript"> alert("Sorry!Wrong User ID or Password entered.Try Again"); document.f1.action="loginpage" document.f1.submit(); } } [/code] I notice the following problems :- [LIST] [*]First no indentations [*]Next I do not know where does this code …

Member Avatar for stephen84s
0
95
Member Avatar for dianac10

You can write objects on a socket, Read about [URL="http://java.sun.com/developer/technicalArticles/Programming/serialization/"]serialization[/URL] and the [URL="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html"]Serializable[/URL] interface.

Member Avatar for stephen84s
0
56
Member Avatar for manofjava

If you are just starting Java, then you should look at [URL="http://www.daniweb.com/forums/thread99132.html"]this[/URL] thread, Its been made sticky by the moderaors for you guys only.

Member Avatar for stultuske
0
135
Member Avatar for zorro3692
Member Avatar for zorro3692
0
131

The End.