Chapter 23


Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Appendix C.  Answers to Review Questions


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.


    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon © 2008-2017.
    If you may any questions please contact us: