Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!

Frank Brown

Greenhorn
+ Follow
since Jan 22, 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 Frank Brown

I can't say I've tried this, but I would think something like this would work:
Use onkeypress handler to detect carriage return (whether from barcode reader or keyed by user). When CR occurs, set hourglass pointer, disable input, grab current value and submit ajax call. On response from ajax call (confirming action), reset pointer, reset and enable input box, and give focus.
Tomcat 6 supports Servlet 2.5 and JSP 2.1 specs. I believe Websphere 6.0 supports only servlet 2.4 and jsp 2.0.
12 years ago
Nitpicking really, but... I think you meant:

for (int i=0; i < batchSize; i++) {
if ( firstValue ) {
firstValue = false;
} else {
inClause.append(',');
}
inClause.append('?');
}
... not this:
for (int i=0; i < batchSize; i++) {
inClause.append('?');
if ( firstValue ) {
firstValue = false;
} else {
inClause.append(',');
}
}
( so you get "?,?,?,...?,?" not "??,?,...?,?,")

... but, since you know batchSize, why not do this:
for (int i=0; i < batchSize - 1; i++) { inClause.append('?,') }
inClause.append('?');

But as Utah Phillips would say, "... it's good though!"
Check out the classes TestSuite and TestSetup. A test suite will invoke the method oneTimeSetup() before the first test and the method oneTimeTearDown() after the last test. The methods Setup() and TearDown() will run before and after every test.
16 years ago

Originally posted by Jonathan King:
... what is WebSphere??


WebSphere is actually a software product family. Here is a partial list:
WebSphere Application Server -- this is a J2EE container/server. The current release supports J2EE 1.3; version 6, planned for late Q2 I think, will support J2EE 1.4.
WebSphere Studio Site Developer -- an entry-level development IDE for HTML, JSP, etc, but does not support development of EJB's.
WebSphere Studio Application Developer -- an advanced IDE for development of all/any J2EE component.
"Scriptlets bad, JSTL good, JSTL 1.1 better."
16 years ago
JSP