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