Hello Ethan,
> I'm researching JSP's abilities relative to other languages such as ASP
> and ColdFusion.
>
> 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.
Hmm, this is a sensitive thing. What you want is something that goes against what
we've gotten to known as good design. The idea is that it's not a good thing to add
java code to a JSP page, for several very good reasons, like making the java code
hard to reuse and confusing the guy making the content of the JSP page with Java
code and confusing the java developer with markup. I won't say anything more about
this right now, but there are many reasons for why going through a bean is much
better. If you want me to elaborate on this, I'll be happy to do so.
> Similarly, is it possible for a JSP script to handle form submission
> without the intervention of a custom Java Bean?
>
Yes, it's possible, but it's not a good way to do it, for the same reasons as
above.
I think a key word to look at is that you say a custom Java Bean. The idea is that
you will have standard Java Beans that take care of common task that you simply
plug into your JSP. This is all about reuse and the often talked about "component
revolution". Let the guys who do Java best do their Java components that the rest
can use without knowing what's happening under the hood. There are already alot of
useful beans being developed and more will come.
> Just curious - I'm very excited about the technology. I'm hoping it can
> be suitable for people with less Java development experience than myself.
Yes, you don't need to know any Java to use JSP and Beans. Only the bean developer
needs to know Java, that's the idea.
Cheers,
Karl Avedal
===========================================================================
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