Chapter 23

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Appendix C.  Answers to Review Questions


A1:

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.

A2:

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.

A3:

The class attribute specifies the name of the class, including the package.

A4:

The param argument of the setProperty action will perform this association automatically.

A5:

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.


       
    Top
     



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

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net