On Tue, 21 Sep 1999, Koehler Ethan wrote:
> How easy is it for a JSP script to "directly" to query and update a
> database? Most examples seem to require the development a custom Bean to
> execute the SQL then provide access to the results.
>
> Similarly, is it possible for a JSP script to handle form submission
> without the intervention of a custom Java Bean?
sure, you can write any Java you like in the body of a JSP page. so you
could use JDBC to select/update data from your database directly. you
just have to make sure you import the necessary packages into the jsp page
<%@ page import="java.sql.*" %> and whatever else you need.
That said, I think there are good reasons to encapsulate that sort of code
in separate classes, but ultimately it's up to you.
cheers
-- James
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html