Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : SQLException - NamesDNS typo Signup · Login
Author Thread
SQLException - NamesDNS typo
Posted in tutorial: Accessing Database using Tags in JSP Pages
·  asadk
User
Joined: 17 May 2004
Total Posts: 3
SQLException - NamesDNS typo
Posted: 17 May 2004
Hi,

Would just like to share that I was getting an SQLException Error, and here is the reason why:

I named my DNS connection "NamesDNS" as specified in this article. But, where the code is listed for DataAccessTag.java on page 1 the following line:

public int doStartTag() throws JspException {
String path = "jdbc:odbc:Names";
...

should read instead the following:

public int doStartTag() throws JspException {
String path = "jdbc:odbc:NamesDNS";
...

This appears correct when the code is explained in bits and pieces, but this typo is there where the whole code is displayed.

Author might want to fix that as convenient.

Asad

Users Who Have Visited This Thread In Last 24 Hours
2 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.