dcsimg
cannot be resolved to a type
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   thomas_leung
Posted On:   Saturday, September 16, 2006 03:10 AM

Hi there, I have written a product.jsp file trying to connect to my SQL2005 Express edition to retrieve some data but getting the error as below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 6 in the jsp file: /product.jsp Generated servlet error: Connection cannot be resolved to a type An error occurred at line: 6 in the jsp file: /product.jsp Generated servlet error: DriverManager cannot be resolved An error occurred at line: 6 in the jsp file: /product.jsp Generated servlet error: Statement cannot be resolved to a type An error occur   More>>

Hi there,


I have written a product.jsp file trying to connect to my SQL2005 Express edition to retrieve some data but getting the error as below:


org.apache.jasper.JasperException: Unable to compile class for JSP



An error occurred at line: 6 in the jsp file: /product.jsp
Generated servlet error:

Connection cannot be resolved to a type



An error occurred at line: 6 in the jsp file: /product.jsp
Generated servlet error:

DriverManager cannot be resolved



An error occurred at line: 6 in the jsp file: /product.jsp
Generated servlet error:

Statement cannot be resolved to a type



An error occurred at line: 6 in the jsp file: /product.jsp
Generated servlet error:

ResultSet cannot be resolved to a type



org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



I am new in Java and programming. Appreciate if there is anyone can help me? I can send the code to you by e-mail. Please let me know your e-mail address. Thanks!

   <<Less

Re: cannot be resolved to a type

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, September 17, 2006 07:49 PM

I'd say you're missing the JDBC driver jar file, perhaps, in your web application's WEB-INF/lib directory....
About | Sitemap | Contact