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
~924.34K People Reached
About Me

Application Developer and Software Architect

Favorite Tags
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
2K
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
1K
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
272
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
2K
Member Avatar for snigger
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
367
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
451
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
8K
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
812
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
484
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
241
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
3K
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
376
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
235
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
1K
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
127