Yes you can call *any* class and use it's methods with
jsp:usebean tag. Beans are just classes. But that is not
always recommended plus it can lead to problems later on if
you use things like a hashtable as the bean itself. It's
always better to encapsulate that hashtable in some object
of your own whose name will be more meaningful.
dave.
John McDonald wrote:
> I'm a little confused about this whole bean thing in JSP.
> I thought that you had to have some specific bean data
> object that you referenced from within a JSP page, but
> recently I noted that someone used the following: <BEAN
> NAME="HASH" INTROSPECT="no" SCOPE="session"
> TYPE="java.util.Hashtable"></BEAN> Can I call ANY class
> and use it's methods, just by using <BEAN
> NAME="ClassName">?
> BTW: For a little more background on the <BEAN> reference
> above, the email is
>
>here-->http://archives.java.sun.com/cgi-bin/wa?A2=ind9911&L=jsp-interest&P=R27059&m=6766
> John
> D. McDonald
> CipherStream Systems
> email: [EMAIL PROTECTED]
> web: www.cipherstream.com
> -------------------------------------------------------
> Secure E-Business Is Our Business
> -------------------------------------------------------
--
David Mossakowski [EMAIL PROTECTED]
Programmer 212.310.7275
Instinet Corporation
"I don't sit idly by, I'm planning a big surprise"
===========================================================================
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