As Zac implies - one requires an instance; the other doesn't.  I wouldn't
create an instance if it's not going to be used - it will just make life
confusing for the guy maintaining the page in 6 months.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Zachary Roberts
Sent: Wednesday, June 05, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: JavaBean Vs Java Class

Sentthoor-

The only thing I can think of is that the JavaBean gives you access to the
automatic <jsp:setProperty> and <jsp:getProperty> tags if you need them.

Zac

>>> [EMAIL PROTECTED] 06/05/02 03:17AM >>>
Hi Guys,

I need to write a static method in a class to do a specific task. I can
simple import the class at the top and use the method in my JSP. However
I am wondering is there any difference in using a class as a JavaBean
rather than simply importing it and using it...

Senthoor

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to