From the course: Java EE: Servlets and JavaServer Pages (JSP)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Search: Querying the database
From the course: Java EE: Servlets and JavaServer Pages (JSP)
Search: Querying the database
- [Instructor] Okay let us pick up where we left off. Another thing to note here is that if you have a lot of problem understanding the code and the Dao class or the DB connection class please feel free to check out any JWC recorded video on LinkedIn Learning. Right, so we are in an application Dao and I've already got the template of the template of the meta ready. What is a meta doing? The name is search products. It will of course have the search string as a parameter and it is going to return me a list of products. And, I'm using the collection and generex feature of code java together. I will encapsulate all the information of the products in a product, bean. Let's look at that product bean quickly. I have a bean class, a simple java bean class, product ID, product image, product image path, and the respective getters and setters. So, this is a simple java bean and I want to encapsulate all the information in a bean because I want to stick to object oriented concept of Java…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.