Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display data from database in JSP - MVC

 
C Grey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I would like to ask help regarding my code.. I am trying to access the xe database and display the data to jsp..
Right now there is no error but the data is not showing..
After I updated my web.xml, I got an error.

Btw, I am trying to establish a MVC archtecture here.
Any thoughts would be appreciated.

here is my code:

DBConn.java


Employee.java



index.jsp



web.xml


ERROR:
 
J. Kevin Robbins
Bartender
Pie
Posts: 1793
20
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You say there are no errors, but how can you tell? You are swallowing all the exceptions. At least put a printStackTrace in your catch blocks and try again.
 
C Grey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi JK,

I have put printStackTrace on the catch.. I have edited my post.. Still nothing...
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi C Grey,

Try putting
in your jsp.. It might work not sure.Reason i will let you know if it works.

Regards
Jatan
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should not be necessary to put that directive in the JSP.
 
C Grey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

After I change my web.xml to point to index, I finally got an error lol...
Please check my updated post..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C Grey wrote:Please check my updated post..

Please do not go back and revise your previous post -- post a reply with changes. Now the responses that follow your post look wrong because you changed the post.
 
C Grey
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
C Grey wrote:Please check my updated post..

Please do not go back and revise your previous post -- post a reply with changes. Now the responses that follow your post look wrong because you changed the post.


Okay sorry about that.. wont'do it next time..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic