Shawn Glisson

Greenhorn
+ Follow
since Feb 13, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Shawn Glisson

I have determined that the problem is not with the db. From a jsp page I call a static method in a seperate class that receives an integer. The integers value is 2373. Here is the static method...

Now when I use the variable as the index for the arrays I only end up with 256 records instead of the 2373 that I need.
BUT
If I replace the variable with a number like 2000, then I get all 2373 records into the table. Of course they are all the same record but it still goes through the loop the necessary amount of times.
I have tried to committhe inserts and no gold. Also my data types for the table i am inserting to consist of 4 chars and 1 decimal(10,2).
I am not sure what the problems is. Is it possible that an array in java can hold no more than 256 elements?
I am attempting to insert over 2000 rows to MySQL. My code all works correctly but from the 2300 inserts, only the first 256 inserts get saved into my table.
Is this a MySQL issue?
I am testing on WinXP Pro, with MySQL 3.23 using connector-J as the driver.
oh and my table is of type MyISAM.
please help
thanks
Nevermind - I just couldnt find my JDBC driver. That made my connection object null. I moved my JDBC, MySQL driver into the lib dir of my web app and all is well. TGIF

Here is the code...

I call this method from a jsp page and Tomcat returns and error page as follows.....

Please help.
Here is my JSP page....

Here is my public class....

The Problem...
From my JSP page I call the 'public int totalLines()' method in my public class. That method works fine running in a standalone app. but when I attempt to execute it on Tomcat it crashes.
The JSP file takes the filename as a string input. Then it looks for that filename and when it goes into count the total lines in that file it crashes. In fact if I enter in any random string, once it hits that totalLines() method it crashes. I am not validating the string at this point and wont need to when this is complete. But WHY is it crashing when I call that method???
Is Tomcat not finding the file? Where does this text file need to go in relation to my class and JSP files?
Please help...
thanks
21 years ago