Hello,
I am new to JSP so my question is perhaps not really interesting for you but
I would appreciate if you could reply.
I have created a JSP and a class DBConnection. I want to create an instance
of that class in my JSP like this:
<% DBConnection dbc = new DBConnection(); %>
I use an Apache-Tomcat server and I have put the JSP and the
DBConnection.class in the same directory ($TOMCAT\webapps\ROOT\)
The problem is that when I test the JSP it can't find the class
DBConnection. I have the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred between lines: 150 and 158 in the jsp file:
/SubscriptionHousehold.jsp
Generated servlet error:
C:\jakarta-tomcat-4.0.2\work\localhost\_\SubscriptionHousehold$jsp.java:63:
Class org.apache.jsp.DBConnection not
found.
DBConnection dbc = new DBConnection();
Can someone tell me what I have to do to be able to create an instance of
DBConnection in my JSP? Is it possible? I hope it is.
Best regards,
Patrick
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com