How to invoke a DAO method in a servlet to pull the result of a query?

This is not the way you do it, Create a Class that wraps the fields you want to display From servlet invoke DAO/service and get the List and render them on jsp using , See Also MVC Design pattern Our Servlet Wiki page.

– Turk Apr 19 at 21:18 No. The servlet is the controller and the JSP is the view. You don't have a JSP.

The DAO is part of a different architecture. – BalusC Apr 20 at 0:24 Well for whatever reason, my instructor does not want us to use JSPs in this assignment. Any thoughts on my problem?

Thanks for the help. – Turk Apr 20 at 0:32 Well. This is the standard way, I won't promote you to follow your instructor.

– Jigar Joshi Apr 20 at 6:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions