V
Vincent Ly
I'm aware that this is a popular error:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 19 in the jsp file: /sample.jsp
Connection.Connect cannot be resolved to a type
16: try
17: {
18:
19: Connection.Connect con = new Connection.Connect();
20: ResultSet rs = con.execute(query);
21:
22: int numCols = rs.getMetaData().getColumnCount();
An error occurred at line: 19 in the jsp file: /sample.jsp
Connection.Connect cannot be resolved to a type
16: try
17: {
18:
19: Connection.Connect con = new Connection.Connect();
20: ResultSet rs = con.execute(query);
21:
22: int numCols = rs.getMetaData().getColumnCount();
From most solutions, it appears that I misplaced the java class.
However, I've placed the Connect class in WEB-INF/classes/Connection/,
which was what was recommended by most. This is the error I still
received.
I'm sorry, but is there something I'm doing wrong?
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 19 in the jsp file: /sample.jsp
Connection.Connect cannot be resolved to a type
16: try
17: {
18:
19: Connection.Connect con = new Connection.Connect();
20: ResultSet rs = con.execute(query);
21:
22: int numCols = rs.getMetaData().getColumnCount();
An error occurred at line: 19 in the jsp file: /sample.jsp
Connection.Connect cannot be resolved to a type
16: try
17: {
18:
19: Connection.Connect con = new Connection.Connect();
20: ResultSet rs = con.execute(query);
21:
22: int numCols = rs.getMetaData().getColumnCount();
From most solutions, it appears that I misplaced the java class.
However, I've placed the Connect class in WEB-INF/classes/Connection/,
which was what was recommended by most. This is the error I still
received.
I'm sorry, but is there something I'm doing wrong?