• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping Model?  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im building an app which has in the view uses jsp´s and it has a model for connecting with the DB.

When I run the app in the server, it looks good. It doesnt throws errors but the message of "connected from the model neither". I try to debug but it doesnt goes to the break points, I suppose that it happens because the app doesnt "recognize" the model.

Should I declare the model in the web.xml?

The code is like this:

web.xml



list.jsp



ConnecDB.java




Any ideas?

Regards,
Isaac


(Bartender cleanup: please don't post long lines; break them up into shorter lines)
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15865
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know the JDBC-ODBC driver has been removed from Java 8. You shouldn't use it, expecially not if you're using Java 8. Remove the Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); and the surrounding try-catch.
 
Junilu Lacar
Sheriff
Posts: 10880
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the JSP forum.
 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I deleted it.




I dont get any error in the console, but it looks that it doesnt run the class which tries to connect with the DB

Any more idea?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!