The difference between Class and beanName is a subtle one and it's not used much. It's where you want polymorphism.
beanName="Secretary" Class="Employee" is more or less equivalent to a statement like Employee x = new Secretary(); Geert Van Damme > -----Original Message----- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Zachary Roberts > Sent: donderdag 13 juni 2002 15:55 > To: [EMAIL PROTECTED] > Subject: Re: Some JSP Questions.. > > > Good questions to help me study for the SCWCD exam... > > Answers (from the JSP 1.2 specs) > > 1. Difference between Include and Forward tags.? > A "A jsp:forward effectively terminates the execution of the > current page." while a "<jsp:include.../> element providers for > the inclusion of static and dynamic resources in the same context > as the current page." > > 2. Difference between Class and beanName in UseBean tag.? > I do not understand this and it doesn't really answer your > question but here are the definitions (If anyone really > understands the difference please help out).... > class - The fully qualified name of the class that defines the > implementation of the object. The class name is case sensitive. > beanName - The name of a Bean, as expected by the instantiate() > method of the java.beans.Beans class. This attribute can accept a > request-time attribute expression as a value. > > 3. My opinion is no but I could not find any information on this > in the specs. Anyone else? > > Zac > > >>> [EMAIL PROTECTED] 06/13/02 08:14AM >>> > Hi all, > > I have some questions in JSP. Could any one one has answers > for these questions.. > > 1. Difference between Include and Forward tags.? > 2. Difference between Class and beanName in UseBean tag.? > 3. Does a bean has to be put in a package to be used from a JSP page.? > > thanks & regards > vijayanand.R > > (),,,() > ( (. .) .-''''''''''-. > ( o ) ) ( 'o' ) > =(,,)=(,,)=(,,)==(,,)= > > ================================================================== > ========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