-
Replied To a Post in Error returning a boolean from method
Sorry, but you do realize that that only investigates the first element in the list, right? -
Replied To a Post in Get Notification based on User's Current Time from Database Value
Simply modify your query. "SELECT contact, start FROM appointment WHERE createdBy = ? and start >= ? and start <= ?" // and use ps.setString(1, MainApp.currentUser); ps.setString(2, new Date()); ps.setString(3, … -
Replied To a Post in It lives, it lives!
Hey James, Dani. Glad to hear it. I no longer have much time to look in here, but glad to see it is still around, and still willing to take, … -
Replied To a Post in Font issue in java in linux OS
Like I said, check that the font you want exists, and, if not, use another. java.awt.GraphicsEnvironment.getAvailableFontFamilyNames(); -
Replied To a Post in Reduce cpu usage of java application
First, ensure a garbage collection is done, then see if it is reduced, at all. Other than this, java will only return memory to the system if a certain percentage … -
Replied To a Post in Font issue in java in linux OS
Um, check if Arial exists and if not set something else? -
Replied To a Post in Detecting software Faults in a java program
Google for JUnit and design unit tests, and then do extensive "business" tests as well. And then you will know that your program is as good as you are currently … -
Replied To a Post in Removing Directories and subdirectories in SFTP server using Java
traverse the directory and remove all sub directories, and all sub directories of the sub directories, etc, a recursive method will suffice. -
Replied To a Post in JSP
Well, don't use scriptlets. Either use a Bean, or google for the sql jstl tag package. -
Replied To a Post in session.getAttribute caused "inconvertible types" exception
Use Boolean not boolean. -
Replied To a Post in how to open jsp page by clicking on swing button of frame
See the Desktop class and its open method (passing it a url). -
Replied To a Post in Variable may not have been initialized
Add a "default" case to handle the 31 day months (since they make up more than half of them), and remove those individual cases, and it will also ensure that … -
Replied To a Post in Try to find the output in the query will update data in mysql database? us
BTW THIS String sql="SELECT * FROM employees where employee_id='"+request.getParameter("emp_id")+"'"; Is just BEGGING for SQL syntax errors and/or SQL injection attacks. -
Replied To a Post in Try to find the output in the query will update data in mysql database? us
> keep writing scriplets in your jsp files, and it'll become a lot harder than it needs to be to debug/maintain. I have told this guy not to do this … -
Replied To a Post in UDP checksum packets
Use the getData() method of the DatagramPacket class, wrap the resulting byte array in a ByteArrayInputStream, and use the MessageDigest class and its MessageDigest.getInstance("MD5"); and then DigestInputStream with the BAIS … -
Replied To a Post in Try to find the output in the query will update data in mysql database? us
Then LOOK at your DB. Is the column REALLY named like that, EXACTLY like that. And, it doesn't matter in what order the columns were created and/or exist in the … -
Replied To a Post in How to implement the mention algorithm
What exactly is your question? -
Replied To a Post in Try to find the output in the query will update data in mysql database? us
ps=con.prepareStatement("update employees set EmployeeName=?,Nationality=?"); ps.setString(1, EmployeeName); ps.setString(3, Nationality); Uhm, where did the "where clause" portion of the statement go? And how many question marks do you count in this statement? … -
Replied To a Post in Try to find the output in the query will update data in mysql database? us
It MIGHT help to know WHAT error you are getting (you will probably have to look at the logs). But what will REALLY help is to STOP WITH THE SCRIPTLETS. … -
Replied To a Post in the Error line was:: ClassNotFoundException:com.mysql.jdbc.Driver in jsp
Sorry, until you get rid of those scriptlets and program your JSPs PROPERLY, I am keeping quiet. -
Replied To a Post in how to resolve this kind of error in jsp?
Uhm, place the mysql jdbc driver jar on the classpath? -
Replied To a Post in Java Code to make an Word-Frequency-Counter
Yes, all true. But it was just being a bit facetious, anyway. ;-) I do that sort of thing, but, of course, with a contains call first, and prefix. -
Replied To a Post in Java Code to make an Word-Frequency-Counter
wordMap.put(word, wordMap.get(word)++) -
Replied To a Post in Write my program for me
Finished. -
Replied To a Post in Audio Level Meter
Also posted [Here](http://www.java-forums.org/new-java/84119-audio-level-meter-new-post.html). Anyone answering may wish to check that they are not repeating anything already stated. -
Replied To a Post in Values not getting printed outside a for loop
Then that means your jsp is getting "short-circuited" inside (or before, as I do not know if those price lines are being returned, either) the for loop. As I said, … -
Gave Reputation to stultuske in JSP -Problem in string comparision
> whenever i retrieve the radio button value and compare it with the database value it is not comparing it either you are comparing it, or you aren't. which is … -
Replied To a Post in how to create sql database interface
Yes. How, and with what language, or even IF to do so, rather than using one that already exists, depends on your requirements. -
Replied To a Post in JSP -Problem in string comparision
Then call trim on the one that is getting broken up. Edit: Better would be to call it on both (but you should probably do null checks before doing that). -
Replied To a Post in Values not getting printed outside a for loop
Just the value of "total" is not getting output, or is that entire line not getting output. I.E. do you see nothing or do you see "THE TOTAL IS" and … -
Replied To a Post in JSP -Problem in string comparision
Did you try what was already posted (other than the beans and jstl advice, I have no wish to "speak to the wall", although I cannot imagine a case where … -
Replied To a Post in JSP -Problem in string comparision
Change your println calls to out.println("<pre>==="+ans+"===</pre>"); out.println("<pre>==="+cans+"===</pre>"); to ensure no whitespace is messing up your comparison. But you REALLY need to learn how to use beans and the varying jstl … -
Replied To a Post in jdbc connection with username and password
My guess is that if your Access file is not password protected the username and password make no difference. -
Replied To a Post in Runtime.getRuntime().freeMemory() gives unexpected results
Probably true. Not sure, was never ALL that interested. But, as I say, I believe the reason he sees about 180 per instance is simply because it never makes it … -
Replied To a Post in Runtime.getRuntime().freeMemory() gives unexpected results
> Also note that Integer is a class, so you are creating 1000 new instances of that class. That's not the same as 1000 ints (primitives) that would be just …
The End.