can some-one please walk me threw the procces of loading a class or package in jsp with tomcat?
i think it might just be a tomcat setup issue :S my jsp file runs fine without importing or using dbpool or dbpooljar. ive tried many suggestions to other peoples similar issues without any luck. any help would be apreciated!
//============my class/package placed in web-inf/classes (among other places)
package dbpooljar;
public class DBPool {
public DBPool() { System.out.println("dbpool evidence!"); } }
//================my compile commands
javac "C:\website\apache-tomcat-6.0.18\webapps\ROOT\WEB-INF\classes\dbpool.java" jar cf "C:\website\apache-tomcat-6.0.18\webapps\ROOT\WEB-INF\classes\dbpooljar.jar" DBPool.java
//============my index.jsp (i have substiuated tags with [] for displaying)
[%@ page import="java.sql.*,java.util.List,java.util.ArrayList,DBPool" %]
[html] [body] Getting Length of a String <% String s1 = "Length of a String!"; out.println("\"" + s1 + "\"" + " is of " + s1.length() + " characters "); DBPool test=new DBPool(); %> [/body] [/html]
//=============and lastly my horrible error (among others when ive tried differant things
An error occurred at line: 9 in the generated java file The import DBPool cannot be resolved