736 Posted Topics
Re: We would but apparently what effort did you put into doing that ? Heck it seems you dint even put the effort to read [URL="http://www.daniweb.com/forums/announcement9-3.html"]this announcement[/URL] nor [URL="http://www.daniweb.com/forums/announcement9-2.html"]this[/URL] which are highlighted at the top of the Java Forum, So why should we help you ??? | |
Re: Well for starters you could checkout the following tutorial on JDBC:- [url]http://java.sun.com/docs/books/tutorial/jdbc/index.html[/url] And I would not recommend on using the Microsoft driver, I found the [URL="http://jtds.sourceforge.net/"]jtds[/URL] Driver for SQL Server to give me a lot better in performance and features. | |
Re: There are quite a few things I would like to tell you in this post:- [LIST] [*]Firstly never ever use the root account in mysql, apart from for performing administrative tasks. [*] Telling that you do not have the time for following Good Design (and following MVC) is like telling … | |
Re: Although you have mentioned that you are working on a web application, you have not even given us the slightest hint as to what are you using in that web application, is it JSP, Servlets etc. [QUOTE] is it possible to do with out a db.....? i think it is...[/QUOTE] … | |
Re: [QUOTE=rajachandra;952973]hello , can you tell me how to delete the previous contents in the file,while adding new contents in java????[/QUOTE] How about deleting the entire file and then creating a new file with the same name at the same location !!! | |
Re: [QUOTE]but when I press enter, I get the error: [Microsoft][ODBC Microsoft Access Driver]Syntax error (missing operator) in query expression ‘Pa_RaM000 firstName = Pa_RaM001’ [/QUOTE] Can you please post the complete error you are getting or the complete query you are using, I cant seem to trace it in your code. … | |
Re: @ryy705 Now when I run [icode]javac -help[/icode] I get the following message:- [quote] stephen@stephen-desktop:~$ javac -help Eclipse Java Compiler 0.894_R34x, 3.4.2 release Copyright IBM Corp 2000, 2008. All rights reserved. Usage: <options> <source files | directories> [/quote] Although I use the Eclipse Java compiler, but then too the usage should … | |
Re: Hmmm .... Got a similar dilemma here, how do we get everyone to read the announcement at the top telling people not to post support questions in the Geeks Lounge ;) | |
Re: Since your records are and will be truly unique by date (as you have mentioned in the edit comment), you could use a simple join query like this:- [code=sql] SELECT A.id, A.profile_id, A.recipient_id, A.created, A.type, A.type_id, A.notify FROM Notifications A, Notifications B WHERE A.receipient_id = B.receipient_id AND A.profile_id = B.profile_id … | |
![]() | Re: Now I haven't gone through your code, but if you are looking for a data structure which can hold a list and gives you the facility to delete any element at random I suggest you take a look at the followinf:- [URL="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html"]ArrayList[/URL] [URL="http://java.sun.com/javase/6/docs/api/java/util/HashSet.html"]HashSet[/URL] [URL="http://java.sun.com/javase/6/docs/api/java/util/HashMap.html"]HashMap[/URL] [URL="http://java.sun.com/javase/6/docs/api/java/util/TreeSet.html"]TreeSet[/URL] [URL="http://java.sun.com/javase/6/docs/api/java/util/TreeMap.html"]TreeMap[/URL] However if you are … ![]() |
Re: If you want the MySQL J-Connector driver to be available to all your Java applications then you should copy the "jar" to "$JRE_HOME/lib/ext", If you have a JDK installed then the location would be "$JDK_HOME/jre/lib/ext". After that you will need to restart tomcat for it to be able to find … | |
Re: The following link apparently seems to be tailor made for the topic of this thread :- [URL="http://www.netbeans.org/kb/articles/javase-deploy.html"]Packaging and Deploying Desktop Java Applications[/URL] | |
Re: Well syntactically your JSP page is correct, although the approach of firing queries directly from inside the JSP page (that too using SQL Statements constructed on the fly) is not only bad but [URL="http://en.wikipedia.org/wiki/SQL_injection"]dangerous[/URL]. Also you need some brushing up on your concepts of HTML and Javascript. The <input> tags … | |
Re: I think what you are looking for is a way to handle [URL="http://www.jsptut.com/Sessions.jsp"]Sessions[/URL] in a JSP page. Rather than using cookies you can transfer content from one JSP page to the next by using the Session object. Of course you can also do it with [URL="http://www.java-tips.org/java-ee-tips/javaserver-pages/using-cookies-from-jsp.html"]cookies[/URL], but using the Session … | |
Re: The problem is not of PATH variables or the Oracle driver Jar not found in classpath, It is quite simply you are not invoking the program correctly. When you are running any Java program, you give the "java" interpreter only the name of the main class (and quite obviously there … | |
Re: Nope no ones going to write that code for you, but we will not mind helping you write it. Here are some tutorials :- [LIST=1] [*] Taking user input from console on Java[[URL="http://www.java-tips.org/java-se-tips/java.util/how-to-read-input-from-console.html"]1[/URL],[URL="http://www.java2s.com/Code/Java/Development-Class/Readinputfromconsole.htm"]2[/URL],[URL="http://java.sun.com/docs/books/tutorial/essential/io/cl.html"]3[/URL]] [*] [URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html"]The For Loop in Java[/URL] [*] [URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html"]Arrays[/URL] [/LIST] Put them all together and you should be … | |
Re: @lloydsbackyard I dont know what you are talking about. When I ran your code, it worked perfectly:- [code] stephen@xxx:~/Development/java> javac bonus.java stephen@xxx:~/Development/java> java bonus Enter Employee's Monthly Salary: 6000 The bonus is 6000 stephen@xxx:~/Development/java> [/code] Also just to inform you the code that you pasted contains an extra "}". And … | |
Re: Can you point out which is the line specified here :- [code] at MyPackage.MouseOverExample$Glyph.<init>(MouseOverExample.java:109) [/code] | |
Re: I agree with VernonDozier, your code compiled and ran OK, You should not be getting this problem unless and until you are using a Java compiler prior to release 1.2 (i.e a pre Java2 compiler cause nextInt(int) was added to the java.util.Random class in JDK 1.2) | |
Re: Have you checked whether your domain name has been registered correctly with your IP Address, To try that just [code]ping www.yahoo.com [/code] Just replace [url]www.yahoo.com[/url] with your address. If in the output your static IP Address is displayed, that means the web address is being forwarded correctly to your IP … | |
Re: Think E-Mails in Java, Think about the Java Mail API [[URL="http://java.sun.com/products/javamail/"]1[/URL],[URL="http://www.javaworld.com/javaworld/jw-06-1999/jw-06-javamail.html"]2[/URL],[URL="http://www.devarticles.com/c/a/Java/Java-Mail-API-Getting-Started/"]3[/URL]] | |
Re: [QUOTE]My code compiles but does not print the contents of the ExtendDVD class. I have the three classes saved as seperate files.[/QUOTE] Well just a quick Search of your code revealed that you have never created an Object of ExtendDVD so I guess its logical that nothing from it would … | |
Re: Or you could have done the same thing that adatapost did [URL="http://lmgtfy.com/?q=java+portable&l=1"]here[/URL] and have found out the answer more faster. | |
Re: Rather than making your own why dont you just try some of the freely available Database Connection Pooling libraries. Look [URL="http://java-source.net/open-source/connection-pools"]here[/URL] for a list of them, For my apps I normally used the DBPool library. Alternatively if you are using Tomcat you can check this [URL="http://www.onjava.com/pub/a/onjava/2006/04/19/database-connection-pooling-with-tomcat.html"]article[/URL] So if you use … | |
Re: [QUOTE]i just left the answer blank. that is why i was really surprised to see a c++ geek who is blonde and cute( i am not allowed to give her name, you know her anyways).[/QUOTE] Dude, not again !!!! [QUOTE]please if you read my threads, dont read them with attitude … | |
Re: I do not know how to execute a macro, but what you could do is Query your MS-Access database and write the values from the recordset into a file CSV format (which can be opened in Excel) or alternatively you could use [URL="http://poi.apache.org/"]Apache POI[/URL] to write it out in the … | |
Re: Well how did you verify the server was running if the page was not being displayed ?? Also can you divulge some details as to what version of tomcat and JDK you are using ? | |
Re: [QUOTE=bca_al;799410]I need a complete source code of ONLINE EXAMINATION SYSTEM in JSP+ORACLE. Can sombody help me? my e-mail id : ----[/QUOTE] Why do you want to cheat your way out of these projects ?? These assignments are to help you learn and understand and get a taste of programming, a … | |
Re: [URL="http://lmgtfy.com/?q=adding+images+to+a+JAR&l=1"]This[/URL] should help. It was the first search result in Google. | |
Re: [QUOTE](this reminds me rashakil fol, where is he now do you know?) [/QUOTE] I am guessing he is still banned. | |
Re: Now dear how do you expect the output to be in a sorted order unless [LIST=1] [*]The contents in the file are themselves in a sorted order --OR--. [*]You manually sort the contents. [/LIST] But you have done neither. Also you have declared the "TreeMap" object and also initialized it, … | |
Re: [QUOTE]Without a space on either side of =[/QUOTE] Used to do the same before Peter_Budo told me about the noparse tags. You can use the noparse tags around your code block like this :- [noparse] [noparse] [code=xyz] [/code] [/noparse] [/noparse] You can read more about the various vB tags [URL="http://www.daniweb.com/forums/misc.php?do=bbcode"]here[/URL]. | |
Re: For the major ones there are [URL="http://struts.apache.org/"]Struts[/URL], [URL="http://java.sun.com/javaee/javaserverfaces/"]JSF[/URL], [URL="http://www.springsource.org/"]Spring[/URL] and then you can [URL="http://java-source.net/open-source/web-frameworks"]check quite a few here[/URL]. | |
Re: Well you could use a [URL="https://www.paypal.com/"]PayPal[/URL] [URL="https://www.paypal.com/in/cgi-bin/webscr?cmd=_home-merchant&nav=2"]business account[/URL]. Although it doesn't cost to create an account, they do charge a fee for any transactions you perform, Also you can check [URL="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/home_US"]here[/URL] on how to integrate PayPal with your website. | |
Re: [QUOTE]is that much of pain worth that taste ? [/QUOTE] Man if I am not wrong was a Hunter before he settled down. Also if you would have followed the experiments of [URL="http://en.wikipedia.org/wiki/Jagadish_Chandra_Bose"]Sir Jagdish Chandra Bose[/URL] on plants heres what Wiki quotes:- [QUOTE]In his research in plant stimuli, he showed … | |
Re: [QUOTE]in IE we can log in a yahoo Mail with a number of mail id at the same time [/QUOTE] Although I haven't used a Windows box for quite a while, I do not think that is possible. You only log in with one mail Id and the other IE … | |
Re: [QUOTE]The question is how do I go about splitting the strings? I know there is a split method but I'm not sure how to use it. [/QUOTE] Its as simple as :- [code=java] String[] splitString = book[i].split("-"); [/code] Look [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#split(java.lang.String)"]here[/URL] for more details. But beware of the "-" in "Addision-Wesley", … | |
Re: Well I do not exactly whats wrong since you have not given us the table schema, but have you tried just printing the value returned by [icode]rsmd.getColumnType(1)[/icode]. Although just for the record I do not see why it should be different from one given by [icode]rsmd.getColumnTypeName(1)[/icode] | |
Re: [QUOTE]what about this one?[/QUOTE] What do you mean by that ?? If you have a valid problem then create a new thread, do not simply hijack old threads. Also post your analysis of the problem what are your thoughts, what do think is the root cause and what did you … | |
Re: Firstly I would suggest you check your CPU usage and Memory Usage, if your machine itself has high CPU usage (or Memory Usage lot higher than your physical memory) then irrespective of the container used your System is bound to become slow, the solution to either problems is to upgrade … | |
Re: I assume you are getting the SQLException on the third line. To create the table you will need to switch to the database you just created by using the [icode]use db-name[/icode] statement or else while creating the table itself in the create statement you will need to specify the name … | |
Re: [QUOTE]I've done the layout but now I don't know to implement the maths.[/QUOTE] The quick approach which comes to my mind is store a,b,c and d in an array say "coefficients" of size 4 and let the index at which the corresponding value is stored indicate the power of "x". … | |
Re: The problem is occurring where you are constructing your SQL query you need to show us that code, for us to trace the error. Also Just for your Information, in case one of the values you wish to insert inside your database contains problem characters like the single quote ('), … | |
Re: [QUOTE]I know how to do everything except separating the 85 into 8 and 5. Should I use a modulus calculation & make 85 an integer? If anyone could provide a solution in code (just the separating 85 part) I would be very greatful[/QUOTE] Well that could be accomplished by just … | |
Re: [QUOTE=BestJewSinceJC;845366]if(letter == "$PART2") You can't test a String's contents by using '=='. It only works for primitive types, String is an Object. Use the String class's equal method[/QUOTE] Just correcting, he means the [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#equals(java.lang.Object)"]equals()[/URL] method of the [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html"]String[/URL] class | |
Re: [QUOTE]my program won't even run so i must have missed something drastically but i don't see it....[/QUOTE] Excellent analysis of the problem, also let me congratulate you on the wonderful code alignment technique you have pioneered. Also do not directly copy paste your assignment. Here are a few pointers you … | |
Re: [QUOTE=ganmo;841389]Hi, I wonder if it's possible to check whether a MySQL DB has updated. e.g. new information is added to a table? and if it detect an update. it will perform search or something else. Main question is if it is possible to listen for changes in the db.[/QUOTE] And … | |
| |
Re: AFAIK you cannot pass values assigned to variables in Javascript to your Server Side JSP pages without putting the actual values inside some form fields viz. the "input" element (eg hidden fields, text fields etc) or "select" element etc. Either that our you can pass them as part of the … |
The End.