There's a collection of articles at http://virtualschool.edu/wap that
addresses this. Hope you find them useful.
At 2:55 PM -0500 02/03/2001, Neill Laney wrote:
>I have two class files, one is a user interface class that reads information
>from a form
>on submit, the other accesses a database. The purpose of the application is
>to take the information from a user, add it to a database and return data
>from the database to the user.
>
>The user interface class correctly reads input from the user and returns
>(echoes) information to the user using RequestDispatcher. The database
>class correctly inserts and selects data from the database.
>
>My question is how to pass the information between class instances, i.e.
>pass user input from the user interface class to the database class and pass
>data from the
>database class to the user interface class.
>
>I would like to know what methods to use or some direction to pursue i.e.
>instantiate a bean with the result set, pass an ArrayList as a parameter,
>put everything in one class (least preference). Also, Any discussion of
>scope and/or persistence or other topics pertaining to this task that I can
>research further.
>
>TIA.
>
>Anyone wishing to learn more about this application as an exercise can
>e-mail me directly.
>
>Neill Laney ( [EMAIL PROTECTED] )
>http://home.nc.rr.com/nlaney
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
---
Dr. Brad Cox; [EMAIL PROTECTED]
Phone: 703 361 4751 Fax: 703 995 0422 Cellular: 703 919-9623
http://superdistributed.com: A new paradigm for a new millinneum
PGP Signature: E194 C6E5 92D8 B8FB 20E8 8667 929A 95A0 FCB6 7C62
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html