Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQLServerDriver cannot be resolved to a type

843838Jul 25 2007 — edited Jul 31 2007
How do i solve this. I have imported java.sql.* and javax.sql.* using page directive. Still it is not able to resolve the driver. The same code works in a normal java file but not in jsp page
An error occurred at line: 12 in the jsp file: /jsp/AMSX_Page.jsp
com.microsoft.jdbc.sqlserver.SQLServerDriver cannot be resolved to a type
9: <H1>Asset Management System (AMSX) </H1>
10: 
11: <%    		
12: 	DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
14:     	Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://10.187.33.159:49408","username","password");
15: 	if (connection != null)
Message was edited by:
BrijeshShah
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2007
Added on Jul 25 2007
3 comments
460 views