• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access the list of dtatabase records using jsp and servlets

 
Akanksha Bhatnagar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me how we can get the list of records from database my sql using jsp pages and servlets so that it show results on webpage
 
Jitender Raghuvanshi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way to do it is by using MVC (Model View Controller) architecture.
Read about it!
You would learn in no time...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jitender Raghuvanshi wrote:Read about it!


Perhaps start with this article.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first thing I notice is that the URL the form is submitted to is called "search", whereas the servlet is mapped to "Search". URLs are not generally case-independent.
 
Akanksha Bhatnagar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jk running ID=0 time=0/15 config=null this is the error i am getting and blank page is coming
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't sound like an error message to me. I thought you were getting a 404? Have you fixed the URL mapping by now? Is the servlet actually being accessed (youc an us elogging to make sure)?

Also, why don't you fix the previous post? If you want to get help on this site you should learn how to post properly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!