736 Posted Topics

Member Avatar for chingkoysilog

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 ???

Member Avatar for javaAddict
-1
195
Member Avatar for lolwtf

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.

Member Avatar for stephen84s
0
106
Member Avatar for TryingToDo

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 …

Member Avatar for stephen84s
0
139
Member Avatar for beanboy

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] …

Member Avatar for beanboy
0
124
Member Avatar for rajachandra

[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 !!!

Member Avatar for javaAddict
0
110
Member Avatar for Matchuel

[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. …

Member Avatar for Matchuel
0
129
Member Avatar for ryy705

@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 …

Member Avatar for ryy705
0
280
Member Avatar for DavidB

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 ;)

Member Avatar for stephen84s
0
109
Member Avatar for tbolt

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 …

Member Avatar for stephen84s
0
78
Member Avatar for buchanan23

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 …

Member Avatar for buchanan23
0
113
Member Avatar for ibnyadam

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 …

Member Avatar for stephen84s
0
120
Member Avatar for JohnPhilipps

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]

Member Avatar for stephen84s
0
94
Member Avatar for vandana88

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 …

Member Avatar for irfannagaria
0
165
Member Avatar for bwinfrey

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 …

Member Avatar for bwinfrey
0
109
Member Avatar for vanpersie

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 …

Member Avatar for vanpersie
0
250
Member Avatar for _Rosie_

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 …

Member Avatar for stultuske
0
131
Member Avatar for lloydsbackyard

@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 …

Member Avatar for masijade
0
141
Member Avatar for Web_Sailor

Can you point out which is the line specified here :- [code] at MyPackage.MouseOverExample$Glyph.<init>(MouseOverExample.java:109) [/code]

Member Avatar for Web_Sailor
0
290
Member Avatar for freelancelote

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)

Member Avatar for freelancelote
0
6K
Member Avatar for v_sriram

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 …

Member Avatar for v_sriram
0
327
Member Avatar for kap_sni

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]]

Member Avatar for dreamer14
0
121
Member Avatar for gstang95gt

[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 …

Member Avatar for gstang95gt
0
161
Member Avatar for cathy dow

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.

Member Avatar for stephen84s
0
79
Member Avatar for webster5u

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 …

Member Avatar for webster5u
0
135
Member Avatar for serkan sendur

[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 …

Member Avatar for serkan sendur
1
157
Member Avatar for ebosysindia

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 …

Member Avatar for stephen84s
0
146
Member Avatar for suse17

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 ?

Member Avatar for osirion666
0
156
Member Avatar for bca_al

[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 …

Member Avatar for SunnyY
0
208
Member Avatar for Zibo

[URL="http://lmgtfy.com/?q=adding+images+to+a+JAR&l=1"]This[/URL] should help. It was the first search result in Google.

Member Avatar for BestJewSinceJC
0
178
Member Avatar for serkan sendur

[QUOTE](this reminds me rashakil fol, where is he now do you know?) [/QUOTE] I am guessing he is still banned.

Member Avatar for serkan sendur
-1
418
Member Avatar for ammenme

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, …

Member Avatar for Helma
0
196
Member Avatar for jephthah

[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].

Member Avatar for Ezzaral
0
293
Member Avatar for RaniThomas

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].

Member Avatar for RaniThomas
0
2K
Member Avatar for prasanta08

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.

Member Avatar for naugiedoggie
0
115
Member Avatar for Trav580
Member Avatar for Ancient Dragon

[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 …

Member Avatar for ddanbe
0
533
Member Avatar for ajithraj

[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 …

Member Avatar for ajithraj
0
95
Member Avatar for cherryduck

[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", …

Member Avatar for cherryduck
0
132
Member Avatar for curtissumpter

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]

Member Avatar for masijade
0
128
Member Avatar for harrysuke

[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 …

Member Avatar for stephen84s
0
358
Member Avatar for AS_82

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 …

Member Avatar for stephen84s
0
1K
Member Avatar for Olsi009

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 …

Member Avatar for Olsi009
0
157
Member Avatar for Twitty25

[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". …

Member Avatar for VernonDozier
1
2K
Member Avatar for aixing

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 ('), …

Member Avatar for aixing
0
154
Member Avatar for gretty

[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 …

Member Avatar for adam1122
0
98
Member Avatar for yingfo

[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

Member Avatar for stephen84s
0
168
Member Avatar for custurd12

[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 …

Member Avatar for stephen84s
0
148
Member Avatar for ganmo

[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 …

Member Avatar for masijade
0
113
Member Avatar for bond124
Member Avatar for k2cool_87

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 …

Member Avatar for k2cool_87
0
132

The End.