Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page redirection problem

 
rajnish patel
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have first time coded jdbc application using javabeans. Login page authentication works successfulyy but I want to retrieve the data and its not working.
So error must be in view.jsp or view.java page..
can any one please see it!!

Hereby I've attached the code...
view.java



view.jsp



and error is,





web.xml
 
rajnish patel
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also tell me if further code is needed
I'll provide.........
 
Rob Spoor
Sheriff
Pie
Posts: 20605
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rajnish patel wrote:web.xml

I see two problems with that:
1) servlet-class "view" cannot be found. That's what your exception is explicitly telling you.
2) servlet-class "bean.view" is not a servlet. You can't make something a servlet just by putting it as a servlet in web.xml. It must implement Servlet, often by extending HttpServlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic