Harro deGouw

Greenhorn
+ Follow
since Feb 23, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Harro deGouw

Also, IBM has posted a JSR spec on the community board for official USB support, check on the jsr.org site. Spec number is JSR80.
The Lego USB API is fairly limited, so I hope the JSR80 will be on the roll soon!
18 years ago
Even better: let your oracle database do the date conversion. The string you get from Oracle when calling getString on your resultset is locale dependant and bound to create unstable code.
Consider this:
select sysdate from dual --> 25-2-04 15:39:11 (25-2 is specific for my locale settings)
better would be:
select to_char(sysdate, 'mm dd yyyy') as mydate from dual
--> will ALLWAYS return date in the month date year format
Third option: use the getDate method on the resultset. This returns a java.sql.Date object with which you can create a java.util.Date:
Date myDate = new java.util.Date(result.getDate("colname").getTime())
18 years ago
Yes, you should use the server VM. It uses a different heap structure and garbage collection settings. Also, consider tuning the VM with the additional -X options.
I'm not sure what you are trying to do, if you try java -server -version you should get the Hotspot server VM.
If not, check you distribution. The jre/bin directory should contain server and client subdirs. (or in my case, jre/lib/sparc for a Sun Solaris dist)
18 years ago
And since 'GET' is the default protocol used when requesting a page/servlet, it can be used to determine the state of your app.
Of course you could use a fullblown MVC framework like Struts, but consider this:
doGet: generate a form, action is same servlet with method=post
doPost: process input from the form
This way it's easy to separate the two views.
18 years ago
Using custom (raw) sockets requires special permissions, you'd have to sign the applet to get these permissions or change the security settings in the browser.
imho it's generally a better idea to use the first mechanism...
18 years ago