Hi Ranchers
My requirement is that I have to fetch data from the database upon a click by the user and display it on the browser. So I'm using JSP, Servlets and Beans. In servlet am connecting to the database(init method) and calling the bean class from the post method. But the method in the bean class is not getting invoked when called from post method. I'm not sure if I have coded correctly or not as I'm newbie to MVC architecture. Making an attempt to learn.
Here's the code:
Servlet:
Bean class
And the error code:
I'm not able to figure out the error in this code. Can anyone help me out?
My requirement is that I have to fetch data from the database upon a click by the user and display it on the browser. So I'm using JSP, Servlets and Beans. In servlet am connecting to the database(init method) and calling the bean class from the post method. But the method in the bean class is not getting invoked when called from post method. I'm not sure if I have coded correctly or not as I'm newbie to MVC architecture. Making an attempt to learn.
Here's the code:
Servlet:
Bean class
And the error code:
I'm not able to figure out the error in this code. Can anyone help me out?