736 Posted Topics
Re: 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 … | |
Re: [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 … | |
Re: [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 ???????? | |
Re: [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, … | |
Re: 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) … | |
Re: 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 … | |
Re: 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 … | |
Re: 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: | |
Re: 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 … | |
Re: 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]. | |
Re: [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 … | |
Re: 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 … | |
Re: 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] | |
Re: So what have you tried ? Can we see the code ? | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
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 … | |
Re: 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 … | |
Re: I reached level 16 then lost interest. | |
Re: 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 … | |
Re: 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 | |
Re: 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] | |
Re: [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 … | |
Re: See if [URL="http://dev.mysql.com/doc/refman/5.0/en/windows-source-build.html"]this[/URL] answers any questions. | |
Re: [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. | |
Re: Come on Peter use your Crystal Ball to identify the Error !!! ;) | |
Re: [URL="http://www.daniweb.com/forums/announcement9-2.html"]This [/URL]piece of code should do the trick for your project. | |
Re: 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 … | |
Re: 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]. | |
Re: 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 … | |
Re: This has more to do with Java script than with JSP. But can I see what have you been trying. | |
Re: 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] | |
Re: 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 … | |
Re: Well I got 100% and 91% ... But I cheated :P I dint take the 5 minutes break mentioned both the times | |
Re: 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) | |
| |
Re: 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 … | |
Re: Heres a nice topic for your project . . . . . . . . . . . . "LEARN TO THINK" | |
Re: 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 … | |
Re: [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. | |
Re: 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 … | |
Re: [URL="http://www.daniweb.com/forums/announcement8-2.html"]Here[/URL] you go, this should do the job. | |
Re: [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 ??? | |
Re: normally no, username maybe, but from a little I had read, some may contain your sessionId etc. | |
Re: 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 … | |
Re: [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 … | |
Re: 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. | |
Re: 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. | |
Re: Try using session.setAttribute() / session.getAttribute() instead of request. |
The End.