You can only use the include directive to insert other JSPs into your page. You can use the include action to include other servlets, JSPs, and HTML files into your JSPs.
JavaBeans are Java classes in every way. This means that they have access to every Java construct and standard extension. Included JSP files are still JSPs, and should only be used to provide view (presentation layer) logic.
The class attribute specifies the name of the class, including the package.
The param argument of the setProperty action will perform this association automatically.
Scriptlets are intended to be short pieces of code that provide logic to the presentation layer of an application. Accessing a database is a controller layer function and, therefore, belongs in a Bean.