• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mapping Model?

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the JSP forum.
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic