-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 6 Jun 2000, Brad Miley wrote:

> I tried putting a main method in a bean. When I used the bean in a jsp the
> main method was not invoked, but I read that it should be. Can someone
> please explain?

main() is executed only if that's the class specified to execute
initially. A single application can have fifty classes, each one with a
main(), and only the initial class run will have its main() executed.

- -----------------------------------------------------------
Joseph B. Ottinger               [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo      HOMES.COM Developer

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i

iQA/AwUBOT4XNwhcVZKknQwGEQI0ZACgl/uz1Dzl1tRQDnBVWx6UZcgRuv0AoJpm
1tTznzuybv/BYgvBM2SY4pXq
=iLUn
-----END PGP SIGNATURE-----

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to