Posts
 
Reputation
Joined
Last Seen
Ranked #35
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
88% Quality Score
Upvotes Received
401
Posts with Upvotes
351
Upvoting Members
141
Downvotes Received
45
Posts with Downvotes
44
Downvoting Members
26
175 Commented Posts
23 Endorsements
Ranked #54
Ranked #39
~948.65K People Reached
About Me

Application Developer and Software Architect

Favorite Tags

2,443 Posted Topics

Member Avatar for OmarAli84

executeUpdate returns an int indicating how many rows were affected by the query. It does not return a resultset. So, on the line where you are carrying out an executeUpdate, you should not be expecting a ResultSet as the return value.

Member Avatar for Shiva p
0
3K
Member Avatar for mir_sheely

A bit of game (and there are better ways, to be sure) but, parse it as an int (I know it's the wrong value, but bear with me), get the binary value of that int, lop of the left most bit (the string will only contain enough bits to represent …

Member Avatar for Andrey_7
0
2K
Member Avatar for Archenemie

Manual. Gives full control with no "bolierplate", repetitive, rigid code. But that's not what you're looking for is it? I dislike [i]all[/i] "Gui builders", as they all produce rigid, reptitive code that is hard to modify correctly, and is not always that effecient when any action to be performed is …

Member Avatar for dotxyteam
0
2K
Member Avatar for hiyatran

The same way you do in HTML, since all a JSP (or actually a Servlet judging by what you posted) does is produce HTML (not that you "call" css, at all, you reference it). Of course you have to escape the quotes that appear within the quotes.

Member Avatar for Purvi_1
0
275
Member Avatar for hidash_in

Why are you doing System type stuff using Java? It is not designed for it. If you want a command line command to get the "application" list that appears in TaskManager, then why are you asking in a Java forum? Ask in some Windows forum somewhere. Edit: And this is …

Member Avatar for Nirman_1
0
3K
Member Avatar for Violet_82

Sorry, but you do realize that that only investigates the first element in the list, right?

Member Avatar for masijade
0
3K
Member Avatar for snigger
Member Avatar for JamesCherrill
0
4K
Member Avatar for JamesCherrill

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, and act on, user input.

Member Avatar for mysunindia
0
370
Member Avatar for Phantess

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, new Date(new Date().getTime() + (1000 * 60 * 15))); // 1000 millisecond * 60 seconds * 15 minutes = number …

Member Avatar for JamesCherrill
0
453
Member Avatar for anand01

That parse method is giving you a java.util.Date object, you need a java.sql.Date object in the setDate method. See the Date(long) constructor of java.sql.Date and the getTime() method of java.util.Date and use the latter as the argument in the former to get a java.sql.Date instance. Edit: P.S. it would have …

Member Avatar for Sushmitha_1
0
9K
Member Avatar for abhilashnair

[inlinecode]find /path/to/directory -type f -mtime 61 -exec rm -f {} \;[/inlinecode] 61 (days) works for everyting except it is one day short for July August and 1 to two days long for (January/February) / (February/March). Edit: make it 62 if it absolutely must be every last day for two months. …

Member Avatar for jwebster91
0
2K
Member Avatar for script_noob

If the only thing in the file is filenames simply do rm `cat input.txt` if there is more than just filenames, but say the third word of every line is a filename then do the following: rm `awk '{print $3}' input.txt` (the fourth word would be $4, etc)

Member Avatar for r 7vtgj
0
9K
Member Avatar for usiyalla

It's [i]not[/i] an "apache setting". It is a "Web Container"/"Application Server" configuration. I.E. Tomcat, Glassfish, Sun Application Server, WebSphere, WebLogic, JBoss, Jetty, etc. Find out which one you are going to use and read its documentation.

Member Avatar for hemeneugene
0
820
Member Avatar for happygeek

Eww, that with the notification email could also turn out to be a windfall for the hackers. What's to stop them from sending a phishing attack (although that is not really necessary, but could also give them the "new" password) or trojan email using that as the bait?

Member Avatar for diafol
3
489
Member Avatar for ~s.o.s~

[QUOTE=bloody_ninja;655019]I haven't seen any tutorials for JSP , so I guess I will post this one link that I found. [URL="http://www.visualbuilder.com/jsp/tutorial/pageorder/1/"]http://www.visualbuilder.com/jsp/tutorial/pageorder/1/[/URL][/QUOTE] [url]http://java.sun.com/j2ee/1.4/docs/tutorial/doc/[/url] [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url]

Member Avatar for ~s.o.s~
46
6K
Member Avatar for gedas
Member Avatar for ardi_lucy

Yes. Write a Comparator. (see the API docs for Comparator and the Collections Tutorials)

Member Avatar for anita_2
0
1K
Member Avatar for Dinesh_9
Member Avatar for kazek

You don't, you create executable jar files (not "exe"s). [url]http://java.sun.com/docs/books/tutorial/deployment/jar/index.html[/url] Edit: And, if you want a "real exe" (i.e. a native executable), then use a language designed to produce a native executable (which Java is not). If you insist on doing something that will negate all the "advantages" gained by …

Member Avatar for stultuske
0
5K
Member Avatar for Dean_Grobler

Because you have mangled your url. See the [url=http://download.oracle.com/javase/tutorial/jdbc/index.html]tutorials[/url].

Member Avatar for jwenting
0
243
Member Avatar for VernonDozier

I'm not certain, but I think you are simply hitting up against some "minimum size" type restrictions. As you can see the orange (dark yellow?) square is the same size as the green and yellow squares and it's relation to the red square has become even more skewed than the …

Member Avatar for Doogledude123
0
4K
Member Avatar for stupidenator

SYOT Start your own thread and clearly state your problem and post both your code (or at least a small self-contained example that reproduces the problem) and any and all error messages.

Member Avatar for stultuske
1
2K
Member Avatar for oberle1515
Member Avatar for pankajagar2002
Member Avatar for sankubha

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 of the heap space is "free", there are command line parameters to use increase/decrease these ratios, but I suggest caution. …

Member Avatar for masijade
0
465
Member Avatar for mr.sweetchuck

[QUOTE=mr.sweetchuck;333254]Hi, I'm trying to use the replace() method to take out all instances of " " , (space) with an underscore, ("_"). I'm doing this because I'm using URLs to connect to a servlet. I keep getting this error: replace([b]char,char[/b]) in java.lang.String cannot be applied to ([b]java.lang.String,java.lang.String[/b]) [code] url.replace(" ", …

Member Avatar for stultuske
0
6K
Member Avatar for Varunkrishna

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 able to test it for, but some user will STILL find bugs (and you can only hope it isn't a …

Member Avatar for stultuske
0
239
Member Avatar for Varunkrishna

traverse the directory and remove all sub directories, and all sub directories of the sub directories, etc, a recursive method will suffice.

Member Avatar for masijade
0
2K
Member Avatar for Tu Dinh
Member Avatar for jackjuma12
Re: JSP

Well, don't use scriptlets. Either use a Bean, or google for the sql jstl tag package.

Member Avatar for stultuske
0
131
Member Avatar for jalpesh_007
Member Avatar for jalpesh_007

My guess is that if your Access file is not password protected the username and password make no difference.

Member Avatar for jalpesh_007
0
422
Member Avatar for CodeHaze

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 your variable gets a value. The reason you get that error is because what hapens if the user enters a …

Member Avatar for cgeier
0
576
Member Avatar for rgkrish183

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. Program PROPERLY.

Member Avatar for rgkrish183
0
325
Member Avatar for Nandomo

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 and the MD in the constructor and its digest method.

Member Avatar for Nandomo
0
397
Member Avatar for amitgorule
Member Avatar for rgkrish183
Member Avatar for peter_budo
0
407
Member Avatar for rgkrish183
Member Avatar for vasudha k
Member Avatar for Allison_1
Member Avatar for bogan.seleman

Yes. How, and with what language, or even IF to do so, rather than using one that already exists, depends on your requirements.

Member Avatar for rch1231
0
118
Member Avatar for joelanandraj

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 nothing more. Edit: And did you look at the web containers logfiles to make sure no errors are being thrown …

Member Avatar for stultuske
0
365
Member Avatar for xchris

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.

Member Avatar for xchris
0
1K
Member Avatar for joelanandraj

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 tag libraries as all this scriptlet stuff is BAD. Scriptlets are JSP 1.0. The ONLY reason they still exist is …

Member Avatar for joelanandraj
0
232
Member Avatar for nikolaos

> 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 4 bytes each However, if you look at the class, the only non static member is an int, so, logically, …

Member Avatar for mKorbel
0
777
Member Avatar for extemer

If there is an embedded JVM (which do exist) and you are using Java RealTime (which sounds like an oxymoron, but it exists and [i]is[/i] real time, although I don't know if it is applicable to the embedded market), which [i]isn't[/i] free, BTW (a pretty hefty license, to tell the …

Member Avatar for NicAx64
0
165
Member Avatar for techyworld

You are using the same dates on every query. Where are you setting the month/year (by year overlap) and where are you setting the first day of the month on the start date?

Member Avatar for masijade
0
203
Member Avatar for Twee Nguyen

Well, what have you got? If nothing, then [Start Here](http://lmgtfy.com/?q=java+cubic+root).

Member Avatar for Twee Nguyen
0
209
Member Avatar for Zet_

Have fun. I don't think ANY one person would be capable of writing those photo (and even worse video) recognition algorithms.

Member Avatar for JamesCherrill
0
222
Member Avatar for urbanthistleuk

srv_date'$srv_date', Edit: REALLY. LOOK at your query String AND the error. The first recongnizable part of thequery in the error String is "stage_two", SO, look at the query String dirctly BEFORE that.

Member Avatar for urbanthistleuk
0
242

The End.