wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Java Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Java Bean" Watch "Java Bean" New topic
Author

Java Bean

Allan Moster
Ranch Hand

Joined: Sep 14, 2001
Posts: 153
What's the difference (if any) between class attribute and beanName attribute? I know that I am permitted to use beanName instead of class attribute but I don't know exactly why.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

In what context are you asking this?
Like in a JSP useBean tag
Could you please clarify....
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Allan Moster
Ranch Hand

Joined: Sep 14, 2001
Posts: 153
<jsp:useBean beanName="SampleClass">
vs
<jsp:useBean class="SampleClass">
Tim Duncan
Ranch Hand

Joined: Aug 20, 2001
Posts: 150
Have a look at the JSP spec (pp 67-73). One feature (see p.73) is that you can use a dynamic, request time expression for beanName.
 
Don't get me started about those stupid light bulbs.
 
subject: Java Bean